WithCallerEnabled tells the tracing hook to log the calling function, file and line.
(on bool)
| 140 | |
| 141 | // WithCallerEnabled tells the tracing hook to log the calling function, file and line. |
| 142 | func 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. |