Benign go Download

go.opentelemetry.io/otelc/instrumentation/go.opentelemetry.io/otel/sdk/trace v0.0.0-20260903084944-0bddf7255a48

Go module source archive layoutDefines Go package startup initialization

Evidence

imports os otel_trace_context.go · lines 1–22
1//go:build ignore
2
3// Copyright The OpenTelemetry Authors
4// SPDX-License-Identifier: Apache-2.0
5
6package trace
7
8import (
9 "container/list"
10 "log/slog"
11 "os"
12 "runtime"
13 "strconv"
14 "sync"
15 "sync/atomic"
16 _ "unsafe"
17
18 trace "go.opentelemetry.io/otel/trace"
19)
20
21//go:linkname registerTraceAndSpanIDFunc go.opentelemetry.io/otelc/pkg/runtime.RegisterTraceAndSpanIDFunc
22func registerTraceAndSpanIDFunc(f f …
English function-word token "and" otel_trace_context.go · lines 27–32
27:64… above, rather than
28// by importing pkg/runtime: that package imports go.opentelemetry.io/otel/sdk/trace,
29// so an import edge from this injected file closes a cycle and the build fails at
30// link time with a pkg/runtime fingerprint mismatch.
31//
32// Call it at each use site rather than caching it in a …
English function-word token "for" otel_trace_context.go · lines 43–45
43:12… o reaching the limit drops implicit propagation for the evicted span
44// instead of retaining a stale parent for it.
45const defaultMaxSpanStates = 10 …
Go strconv.Atoi call otel_trace_context.go · lines 63–77
63:6… positiveIntEnv(name string) (int, bool) {
64 v := os.Getenv(name)
65 if v == "" {
66 return 0, false
67 }
68 parsed, err := strconv.Atoi(v)
69 if err != nil || parsed <= 0 {
70 return 0, false
⋯7 lines
Go linkname compiler directive gls.go · lines 1–32
1// Copyright The OpenTelemetry Authors
2// SPDX-License-Identifier: Apache-2.0
3
4package trace
5
6import (
7 _ "unsafe"
8
9 "go.opentelemetry.io/otel/trace"
10)
11
12//go:linkname traceContextAddSpan go.opentelemetry.io/otel/sdk/trace.traceContextAddSpan
13func traceContextAddSpan(span trace.Span)
14
⋯18 lines

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.