File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -115,8 +115,8 @@ func WithDBStatement(on bool) TracingOption {
115115 })
116116}
117117
118- // WithCaller tells the tracing hook to log the calling function, file and line.
119- func WithCaller (on bool ) TracingOption {
118+ // WithCallerEnabled tells the tracing hook to log the calling function, file and line.
119+ func WithCallerEnabled (on bool ) TracingOption {
120120 return tracingOption (func (conf * config ) {
121121 conf .callerEnabled = on
122122 })
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ func TestWithoutCaller(t *testing.T) {
7171 hook := newTracingHook (
7272 "" ,
7373 WithTracerProvider (provider ),
74- WithCaller (false ),
74+ WithCallerEnabled (false ),
7575 )
7676 ctx , span := provider .Tracer ("redis-test" ).Start (context .TODO (), "redis-test" )
7777 cmd := redis .NewCmd (ctx , "ping" )
You can’t perform that action at this time.
0 commit comments