Skip to content

Commit 5314a57

Browse files
flc1125ndyakov
andauthored
fix(redisotel): fix the situation of reporting spans multiple times (#3168)
Co-authored-by: Nedyalko Dyakov <[email protected]>
1 parent 7d55118 commit 5314a57

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

extra/redisotel/tracing.go

-4
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ func InstrumentTracing(rdb redis.UniversalClient, opts ...TracingOption) error {
3030
rdb.AddHook(newTracingHook(connString, opts...))
3131
return nil
3232
case *redis.ClusterClient:
33-
rdb.AddHook(newTracingHook("", opts...))
34-
3533
rdb.OnNewNode(func(rdb *redis.Client) {
3634
opt := rdb.Options()
3735
opts = addServerAttributes(opts, opt.Addr)
@@ -40,8 +38,6 @@ func InstrumentTracing(rdb redis.UniversalClient, opts ...TracingOption) error {
4038
})
4139
return nil
4240
case *redis.Ring:
43-
rdb.AddHook(newTracingHook("", opts...))
44-
4541
rdb.OnNewNode(func(rdb *redis.Client) {
4642
opt := rdb.Options()
4743
opts = addServerAttributes(opts, opt.Addr)

0 commit comments

Comments
 (0)