diff --git a/tracing/http.go b/tracing/http.go index 00305173c7..a5832de7e4 100644 --- a/tracing/http.go +++ b/tracing/http.go @@ -30,7 +30,7 @@ import ( func Transport(rt http.RoundTripper, name string) http.RoundTripper { rt = otelhttp.NewTransport(rt, otelhttp.WithClientTrace(func(ctx context.Context) *httptrace.ClientTrace { - return otelhttptrace.NewClientTrace(ctx) + return otelhttptrace.NewClientTrace(ctx, otelhttptrace.WithoutSubSpans()) }), otelhttp.WithSpanNameFormatter(func(_ string, r *http.Request) string { return name + "/HTTP " + r.Method