mirror of
https://github.com/redis/go-redis.git
synced 2025-04-17 20:17:02 +03:00
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…
x
Reference in New Issue
Block a user