Skip to content

Commit 15820f5

Browse files
committed
Use tracingClient.
Signed-off-by: Tom Wilkie <[email protected]>
1 parent 1fc39c0 commit 15820f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/querier/correctness/runner.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ func NewRunner(cfg RunnerConfig) (*Runner, error) {
126126
tc := &Runner{
127127
cfg: cfg,
128128
quit: make(chan struct{}),
129-
client: v1.NewAPI(client),
129+
client: v1.NewAPI(tracingClient{client}),
130130
}
131131
tc.wg.Add(1)
132132
go tc.verifyLoop()
@@ -137,7 +137,7 @@ type tracingClient struct {
137137
api.Client
138138
}
139139

140-
func (t *tracingClient) Do(ctx context.Context, req *http.Request) (*http.Response, []byte, error) {
140+
func (t tracingClient) Do(ctx context.Context, req *http.Request) (*http.Response, []byte, error) {
141141
req, tr := nethttp.TraceRequest(opentracing.GlobalTracer(), req)
142142
defer tr.Finish()
143143
return t.Client.Do(ctx, req)

0 commit comments

Comments
 (0)