From ac4e2a14ccc2a20265405305049d0f0a243ee15c Mon Sep 17 00:00:00 2001 From: Mario Rodriguez Date: Thu, 23 Sep 2021 09:39:55 +0200 Subject: [PATCH] Use opentracing --- modules/frontend/retry.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/frontend/retry.go b/modules/frontend/retry.go index 4330278952e..1c4a0a1a632 100644 --- a/modules/frontend/retry.go +++ b/modules/frontend/retry.go @@ -5,6 +5,7 @@ import ( "net/http" "github.com/opentracing/opentracing-go" + "github.com/opentracing/opentracing-go/ext" ot_log "github.com/opentracing/opentracing-go/log" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promauto" @@ -37,7 +38,7 @@ func (r retryWare) Do(req *http.Request) (*http.Response, error) { ctx := req.Context() span, ctx := opentracing.StartSpanFromContext(ctx, "frontend.Retry") defer span.Finish() - span.SetTag("span.kind", "client") + ext.SpanKindRPCClient.Set(span) // context propagation req = req.WithContext(ctx)