We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
namespace
1 parent cc9bcb0 commit ec9a74dCopy full SHA for ec9a74d
extra/redisotel/tracing.go
@@ -27,6 +27,7 @@ func InstrumentTracing(rdb redis.UniversalClient, opts ...TracingOption) error {
27
opt := rdb.Options()
28
connString := formatDBConnString(opt.Network, opt.Addr)
29
opts = addServerAttributes(opts, opt.Addr)
30
+ opts = append(opts, WithAttributes(semconv.ServiceNamespace(strconv.Itoa(opt.DB))))
31
rdb.AddHook(newTracingHook(connString, opts...))
32
return nil
33
case *redis.ClusterClient:
0 commit comments