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 {
115
115
})
116
116
}
117
117
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 {
120
120
return tracingOption (func (conf * config ) {
121
121
conf .callerEnabled = on
122
122
})
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ func TestWithoutCaller(t *testing.T) {
71
71
hook := newTracingHook (
72
72
"" ,
73
73
WithTracerProvider (provider ),
74
- WithCaller (false ),
74
+ WithCallerEnabled (false ),
75
75
)
76
76
ctx , span := provider .Tracer ("redis-test" ).Start (context .TODO (), "redis-test" )
77
77
cmd := redis .NewCmd (ctx , "ping" )
You can’t perform that action at this time.
0 commit comments