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

Commit 3d92df5

Browse files
committed
fix for Go1.11
1 parent d21fbb0 commit 3d92df5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tracer/propagation_ot.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func (p *textMapPropagator) Inject(
4545
return opentracing.ErrInvalidCarrier
4646
}
4747

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

5050
carrier.Set(fieldNameTraceID, traceId)
5151
carrier.Set(fieldNameSpanID, strconv.FormatUint(sc.SpanID, 16))

0 commit comments

Comments
 (0)