From 538f6b7dd1cdf12f4ba4d9bc786ecc142c215572 Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Wed, 9 Sep 2020 17:39:59 +0200 Subject: [PATCH] Fix missing remote read spans (#7914) (#7916) The remote read client needs to use the nethttp.Transport wrapper in order for spans to be instrumented properly. Signed-off-by: Chris Marchbanks Co-authored-by: Chris Marchbanks --- storage/remote/client.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/storage/remote/client.go b/storage/remote/client.go index 617b7ba67e..2946010686 100644 --- a/storage/remote/client.go +++ b/storage/remote/client.go @@ -109,6 +109,11 @@ func newReadClient(name string, conf *ClientConfig) (ReadClient, error) { return nil, err } + t := httpClient.Transport + httpClient.Transport = &nethttp.Transport{ + RoundTripper: t, + } + return &Client{ remoteName: name, url: conf.URL,