MCPcopy
hub / github.com/containerd/containerd / SpanFromContext

Function SpanFromContext

pkg/tracing/tracing.go:71–75  ·  view source on GitHub ↗

SpanFromContext returns the current Span from the context.

(ctx context.Context)

Source from the content-addressed store, hash-verified

69
70// SpanFromContext returns the current Span from the context.
71func SpanFromContext(ctx context.Context) *Span {
72 return &Span{
73 otelSpan: trace.SpanFromContext(ctx),
74 }
75}
76
77// Span is wrapper around otel trace.Span.
78// Span is the individual component of a trace. It represents a

Callers 15

RunPodSandboxMethod · 0.92
StopPodSandboxMethod · 0.92
RemovePodSandboxMethod · 0.92
CreateContainerMethod · 0.92
StartContainerMethod · 0.92
StopContainerMethod · 0.92
RemoveContainerMethod · 0.92
ExecSyncMethod · 0.92
ExecMethod · 0.92
AttachMethod · 0.92
PullImageMethod · 0.92
RemoveImageMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…