MCPcopy
hub / github.com/netdata/netdata / withTerminalCallDepth

Function withTerminalCallDepth

src/go/logger/handler.go:67–72  ·  view source on GitHub ↗
(depth int, sh slog.Handler)

Source from the content-addressed store, hash-verified

65}
66
67func withTerminalCallDepth(depth int, sh slog.Handler) slog.Handler {
68 if v, ok := sh.(*callDepthHandler); ok {
69 sh = v.sh
70 }
71 return &callDepthHandler{depth: depth, isTerminal: true, sh: sh}
72}
73
74type callDepthHandler struct {
75 depth int

Callers 4

WithAttrsMethod · 0.85
WithGroupMethod · 0.85
newLoggerFunction · 0.85
newDepthTestLoggerFunction · 0.85

Calls

no outgoing calls

Tested by 1

newDepthTestLoggerFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…