MCPcopy
hub / github.com/grafana/tempo / WithTraceID

Function WithTraceID

pkg/util/log/wrappers.go:21–24  ·  view source on GitHub ↗

WithTraceID returns a Logger that has information about the traceID in its details.

(traceID string, l kitlog.Logger)

Source from the content-addressed store, hash-verified

19// WithTraceID returns a Logger that has information about the traceID in
20// its details.
21func WithTraceID(traceID string, l kitlog.Logger) kitlog.Logger {
22 // See note in WithContext.
23 return kitlog.With(l, "traceID", traceID)
24}
25
26// WithContext returns a Logger that has information about the current user in
27// its details.

Callers 1

WithContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected