chore: only create span events

Signed-off-by: Juraj Michalek <juraj.michalek132@gmail.com>
This commit is contained in:
Juraj Michalek 2024-10-30 09:41:16 +01:00
parent 7ecdb55b02
commit 76ff12b32a

View file

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