Skip to content

Commit 6adfd75

Browse files
chore(redisotel): rename WithCaller to WithCallerEnabled
1 parent 27f90d1 commit 6adfd75

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

extra/redisotel/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
})

extra/redisotel/tracing_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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")

0 commit comments

Comments
 (0)