From 16981c0c00b04c9519685fafa696eb0b115f0f48 Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Sun, 15 Nov 2020 14:35:04 +0200 Subject: [PATCH] Tweak name --- options.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/options.go b/options.go index 2b743c8f..f2c16c5b 100644 --- a/options.go +++ b/options.go @@ -293,11 +293,12 @@ func newConnPool(opt *Options) *pool.ConnPool { return pool.NewConnPool(&pool.Options{ Dialer: func(ctx context.Context) (net.Conn, error) { var conn net.Conn - err := internal.WithSpan(ctx, "redis.dialer", func(ctx context.Context, span trace.Span) error { - var err error + err := internal.WithSpan(ctx, "redis.dial", func(ctx context.Context, span trace.Span) error { span.SetAttributes( label.String("db.connection_string", opt.Addr), ) + + var err error conn, err = opt.Dialer(ctx, opt.Network, opt.Addr) if err != nil { _ = internal.RecordError(ctx, err)