MCPcopy
hub / github.com/containerd/containerd / WithAttribute

Function WithAttribute

pkg/tracing/tracing.go:39–44  ·  view source on GitHub ↗

WithAttribute appends attributes to a new created span.

(k string, v any)

Source from the content-addressed store, hash-verified

37
38// WithAttribute appends attributes to a new created span.
39func WithAttribute(k string, v any) SpanOpt {
40 return func(config *StartConfig) {
41 config.spanOpts = append(config.spanOpts,
42 trace.WithAttributes(Attribute(k, v)))
43 }
44}
45
46// UpdateHTTPClient updates the http client with the necessary otel transport
47func UpdateHTTPClient(client *http.Client, name string) {

Callers 15

StartMethod · 0.92
KillMethod · 0.92
WaitMethod · 0.92
CloseIOMethod · 0.92
ResizeMethod · 0.92
DeleteMethod · 0.92
StartMethod · 0.92
KillMethod · 0.92
PauseMethod · 0.92
ResumeMethod · 0.92
WaitMethod · 0.92
DeleteMethod · 0.92

Calls 1

AttributeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…