Browse Source

Fix missing remote read spans (#7914)

The remote read client needs to use the nethttp.Transport wrapper in
order for spans to be instrumented properly.

Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
pull/7921/head
Chris Marchbanks 4 years ago committed by GitHub
parent
commit
f0f8e50567
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      storage/remote/client.go

5
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,

Loading…
Cancel
Save