mirror of https://github.com/go-redis/redis.git
Tweak name
This commit is contained in:
parent
7bd3bffc5b
commit
16981c0c00
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue