From: Andrew Lee (李健秋) Date: May, 16 2026 07:51:42 +0200 Subject: [PATCH] TODO: Put a short summary on the line above and replace this paragraph with a longer explanation of this change. Complete the meta-information with other relevant fields (see below for details). To make it easier, the information below has been extracted from the changelog. Adjust it or drop it. Bug-Debian: https://bugs.debian.org/1133077 --- The information above should follow the Patch Tagging Guidelines, please checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: (upstream|backport|vendor|other), (|commit:) Bug: Bug-: Forwarded: (no|not-needed|) Applied-Upstream: , (|commit:) Reviewed-By: --- a/internal/global/trace.go +++ b/internal/global/trace.go @@ -25,7 +25,7 @@ import ( "sync" "sync/atomic" - "go.opentelemetry.io/auto/sdk" +// "go.opentelemetry.io/auto/sdk" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" @@ -177,10 +177,10 @@ func (t *tracer) newSpan( // needs to be a parameter so that pointer can be reliably determined, it // should not be read from the global. - if *autoSpan { - tracer := sdk.TracerProvider().Tracer(t.name, t.opts...) - return tracer.Start(ctx, name, opts...) - } +// if *autoSpan { +// tracer := sdk.TracerProvider().Tracer(t.name, t.opts...) +// return tracer.Start(ctx, name, opts...) +// } s := nonRecordingSpan{sc: trace.SpanContextFromContext(ctx), tracer: t} ctx = trace.ContextWithSpan(ctx, s)