mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-13 06:47:28 -08:00
chore: only create span events
Signed-off-by: Juraj Michalek <juraj.michalek132@gmail.com>
This commit is contained in:
parent
7ecdb55b02
commit
76ff12b32a
|
@ -218,7 +218,7 @@ func NewWriteClient(name string, conf *ClientConfig) (WriteClient, error) {
|
|||
httpClient.Transport = otelhttp.NewTransport(
|
||||
t,
|
||||
otelhttp.WithClientTrace(func(ctx context.Context) *httptrace.ClientTrace {
|
||||
return otelhttptrace.NewClientTrace(ctx)
|
||||
return otelhttptrace.NewClientTrace(ctx, otelhttptrace.WithoutSubSpans())
|
||||
}))
|
||||
return &Client{
|
||||
remoteName: name,
|
||||
|
|
Loading…
Reference in a new issue