Skip to content

Commit

Permalink
chore: uses status code variable
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Bandy <bandy.chris@gmail.com>
  • Loading branch information
jcchavezs and cbandy authored Nov 13, 2020
1 parent 21ba9b2 commit 8b13e84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exporters/trace/zipkin/zipkin.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func (e *Exporter) ExportSpans(ctx context.Context, batch []*export.SpanData) er
return e.errf("failed to read response body: %v", err)
}

if resp.StatusCode != 202 {
if resp.StatusCode != http.StatusAccepted {
return e.errf("failed to send spans to zipkin server with status %d", resp.StatusCode)
}

Expand Down

0 comments on commit 8b13e84

Please sign in to comment.