Skip to content
This repository has been archived by the owner on Aug 17, 2020. It is now read-only.

Commit

Permalink
fix for Go1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyredondo committed Mar 17, 2020
1 parent 0af7af7 commit 8c172d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tracer/propagation_ot.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (p *textMapPropagator) Inject(
return opentracing.ErrInvalidCarrier
}

traceId := strings.ReplaceAll(sc.TraceID.String(), "-", "")
traceId := strings.Replace(sc.TraceID.String(), "-", "", -1)

carrier.Set(fieldNameTraceID, traceId)
carrier.Set(fieldNameSpanID, strconv.FormatUint(sc.SpanID, 16))
Expand Down

0 comments on commit 8c172d4

Please sign in to comment.