From 3d92df510e534c5d06a9ca8d7265e5db68698641 Mon Sep 17 00:00:00 2001 From: Daniel Redondo Date: Mon, 9 Mar 2020 15:02:09 +0100 Subject: [PATCH] fix for Go1.11 --- tracer/propagation_ot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracer/propagation_ot.go b/tracer/propagation_ot.go index d51181e4..e797b8d4 100644 --- a/tracer/propagation_ot.go +++ b/tracer/propagation_ot.go @@ -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))