mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-12 06:17:27 -08:00
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> Co-authored-by: Chris Marchbanks <csmarchbanks@gmail.com>
This commit is contained in:
parent
e55b0be9b7
commit
538f6b7dd1
|
@ -109,6 +109,11 @@ func newReadClient(name string, conf *ClientConfig) (ReadClient, error) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
t := httpClient.Transport
|
||||||
|
httpClient.Transport = &nethttp.Transport{
|
||||||
|
RoundTripper: t,
|
||||||
|
}
|
||||||
|
|
||||||
return &Client{
|
return &Client{
|
||||||
remoteName: name,
|
remoteName: name,
|
||||||
url: conf.URL,
|
url: conf.URL,
|
||||||
|
|
Loading…
Reference in a new issue