MCPcopy
hub / github.com/netdata/netdata / withCallDepth

Function withCallDepth

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

Source from the content-addressed store, hash-verified

57}
58
59func withCallDepth(depth int, sh slog.Handler) slog.Handler {
60 if v, ok := sh.(*callDepthHandler); ok {
61 sh = v.sh
62 return &callDepthHandler{depth: depth, isTerminal: v.isTerminal, sh: sh}
63 }
64 return &callDepthHandler{depth: depth, sh: sh}
65}
66
67func withTerminalCallDepth(depth int, sh slog.Handler) slog.Handler {
68 if v, ok := sh.(*callDepthHandler); ok {

Callers 3

WithAttrsMethod · 0.85
WithGroupMethod · 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…