Debian Codegraph @

debian/patches/disable-sdk-auto.patch

raw
1 From: Andrew Lee (李健秋) <[email protected]>
2 Date: May, 16 2026 07:51:42 +0200
3 Subject: [PATCH] <short summary of the patch>
4
5 TODO: Put a short summary on the line above and replace this paragraph
6 with a longer explanation of this change. Complete the meta-information
7 with other relevant fields (see below for details). To make it easier, the
8 information below has been extracted from the changelog. Adjust it or drop
9 it.
10
11 Bug-Debian: https://bugs.debian.org/1133077
12 ---
13 The information above should follow the Patch Tagging Guidelines, please
14 checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
15 are templates for supplementary fields that you might want to add:
16
17 Origin: (upstream|backport|vendor|other), (<patch-url>|commit:<commit-id>)
18 Bug: <upstream-bugtracker-url>
19 Bug-<Vendor>: <vendor-bugtracker-url>
20 Forwarded: (no|not-needed|<patch-forwarded-url>)
21 Applied-Upstream: <version>, (<commit-url>|commit:<commid-id>)
22 Reviewed-By: <name and email of someone who approved/reviewed the patch>
23
24 --- a/internal/global/trace.go
25 +++ b/internal/global/trace.go
26 @@ -25,7 +25,7 @@ import (
27 "sync"
28 "sync/atomic"
29
30 - "go.opentelemetry.io/auto/sdk"
31 +// "go.opentelemetry.io/auto/sdk"
32
33 "go.opentelemetry.io/otel/attribute"
34 "go.opentelemetry.io/otel/codes"
35 @@ -177,10 +177,10 @@ func (t *tracer) newSpan(
36 // needs to be a parameter so that pointer can be reliably determined, it
37 // should not be read from the global.
38
39 - if *autoSpan {
40 - tracer := sdk.TracerProvider().Tracer(t.name, t.opts...)
41 - return tracer.Start(ctx, name, opts...)
42 - }
43 +// if *autoSpan {
44 +// tracer := sdk.TracerProvider().Tracer(t.name, t.opts...)
45 +// return tracer.Start(ctx, name, opts...)
46 +// }
47
48 s := nonRecordingSpan{sc: trace.SpanContextFromContext(ctx), tracer: t}
49 ctx = trace.ContextWithSpan(ctx, s)