Skip to content

Commit 16981c0

Browse files
committed
Tweak name
1 parent 7bd3bff commit 16981c0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

options.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,11 +293,12 @@ func newConnPool(opt *Options) *pool.ConnPool {
293293
return pool.NewConnPool(&pool.Options{
294294
Dialer: func(ctx context.Context) (net.Conn, error) {
295295
var conn net.Conn
296-
err := internal.WithSpan(ctx, "redis.dialer", func(ctx context.Context, span trace.Span) error {
297-
var err error
296+
err := internal.WithSpan(ctx, "redis.dial", func(ctx context.Context, span trace.Span) error {
298297
span.SetAttributes(
299298
label.String("db.connection_string", opt.Addr),
300299
)
300+
301+
var err error
301302
conn, err = opt.Dialer(ctx, opt.Network, opt.Addr)
302303
if err != nil {
303304
_ = internal.RecordError(ctx, err)

0 commit comments

Comments
 (0)