Unverified Commit 538f6b7d by Julien Pivotto Committed by GitHub

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: 's avatarChris Marchbanks <csmarchbanks@gmail.com>
Co-authored-by: 's avatarChris Marchbanks <csmarchbanks@gmail.com>
parent e55b0be9
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment