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

Function WithUserID

pkg/util/log/wrappers.go:14–17  ·  view source on GitHub ↗

WithUserID returns a Logger that has information about the current user in its details.

(userID string, l kitlog.Logger)

Source from the content-addressed store, hash-verified

12// WithUserID returns a Logger that has information about the current user in
13// its details.
14func WithUserID(userID string, l kitlog.Logger) kitlog.Logger {
15 // See note in WithContext.
16 return kitlog.With(l, "org_id", userID)
17}
18
19// WithTraceID returns a Logger that has information about the traceID in
20// its details.

Callers 1

WithContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected