From 2f3951773f2600fd80c1da9b527c6b8b69e5bd01 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Fri, 5 Jul 2024 23:11:12 +0300 Subject: [PATCH] cleanup trace spans Signed-off-by: Vasiliy Tolstov --- tracer.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/tracer.go b/tracer.go index 6ca14d6..32aaada 100644 --- a/tracer.go +++ b/tracer.go @@ -18,14 +18,12 @@ func setTracing(rdb redis.UniversalClient, tr tracer.Tracer, opts ...tracer.Span connString := formatDBConnString(opt.Network, opt.Addr) rdb.AddHook(newTracingHook(connString, tr)) case *redis.ClusterClient: - rdb.AddHook(newTracingHook("", tr, opts...)) rdb.OnNewNode(func(rdb *redis.Client) { opt := rdb.Options() connString := formatDBConnString(opt.Network, opt.Addr) rdb.AddHook(newTracingHook(connString, tr)) }) case *redis.Ring: - rdb.AddHook(newTracingHook("", tr, opts...)) rdb.OnNewNode(func(rdb *redis.Client) { opt := rdb.Options() connString := formatDBConnString(opt.Network, opt.Addr)