Skip to content

Commit

Permalink
Use opentracing
Browse files Browse the repository at this point in the history
  • Loading branch information
mapno committed Sep 28, 2021
1 parent f338328 commit 124f71e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/frontend/retry.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 124f71e

Please sign in to comment.