WithDBStatement tells the tracing hook to log raw redis commands.
(on bool)
| 133 | |
| 134 | // WithDBStatement tells the tracing hook to log raw redis commands. |
| 135 | func 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. |
| 142 | func WithCallerEnabled(on bool) TracingOption { |