mirror of
https://github.com/prometheus/prometheus
synced 2026-05-01 07:30:30 +08:00
chore: only create span events
Signed-off-by: Juraj Michalek <juraj.michalek132@gmail.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user