diff --git a/options.go b/options.go index 2b743c8..f2c16c5 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)