Compare commits

...

2 Commits

Author SHA1 Message Date
Flc゛ ca352ceb1d
Merge cc4810cc5a into 80c9f5bb77 2024-11-08 13:07:25 +01:00
Flc cc4810cc5a fix(redisotel): fix the situation of reporting spans multiple times 2024-10-23 19:05:03 +08:00
1 changed files with 0 additions and 4 deletions

View File

@ -30,8 +30,6 @@ func InstrumentTracing(rdb redis.UniversalClient, opts ...TracingOption) error {
rdb.AddHook(newTracingHook(connString, opts...))
return nil
case *redis.ClusterClient:
rdb.AddHook(newTracingHook("", opts...))
rdb.OnNewNode(func(rdb *redis.Client) {
opt := rdb.Options()
opts = addServerAttributes(opts, opt.Addr)
@ -40,8 +38,6 @@ func InstrumentTracing(rdb redis.UniversalClient, opts ...TracingOption) error {
})
return nil
case *redis.Ring:
rdb.AddHook(newTracingHook("", opts...))
rdb.OnNewNode(func(rdb *redis.Client) {
opt := rdb.Options()
opts = addServerAttributes(opts, opt.Addr)