mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-26 13:11:11 -08:00
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>
This commit is contained in:
parent
fc8e769d71
commit
f0f8e50567
|
@ -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…
Reference in a new issue