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

Function WithDBStatement

extra/redisotel/config.go:135–139  ·  view source on GitHub ↗

WithDBStatement tells the tracing hook to log raw redis commands.

(on bool)

Source from the content-addressed store, hash-verified

133
134// WithDBStatement tells the tracing hook to log raw redis commands.
135func WithDBStatement(on bool) TracingOption {
136 return tracingOption(func(conf *config) {
137 conf.dbStmtEnabled = on
138 })
139}
140
141// WithCallerEnabled tells the tracing hook to log the calling function, file and line.
142func WithCallerEnabled(on bool) TracingOption {

Callers 1

TestWithDBStatementFunction · 0.85

Calls 1

tracingOptionFuncType · 0.85

Tested by 1

TestWithDBStatementFunction · 0.68