MCPcopy
hub / github.com/redis/go-redis / WithCallerEnabled

Function WithCallerEnabled

extra/redisotel/config.go:142–146  ·  view source on GitHub ↗

WithCallerEnabled tells the tracing hook to log the calling function, file and line.

(on bool)

Source from the content-addressed store, hash-verified

140
141// WithCallerEnabled tells the tracing hook to log the calling function, file and line.
142func WithCallerEnabled(on bool) TracingOption {
143 return tracingOption(func(conf *config) {
144 conf.callerEnabled = on
145 })
146}
147
148// WithCommandFilter allows filtering of commands when tracing to omit commands that may have sensitive details like
149// passwords.

Callers 1

TestWithoutCallerFunction · 0.85

Calls 1

tracingOptionFuncType · 0.85

Tested by 1

TestWithoutCallerFunction · 0.68