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{
|
return pool.NewConnPool(&pool.Options{
|
||||||
Dialer: func(ctx context.Context) (net.Conn, error) {
|
Dialer: func(ctx context.Context) (net.Conn, error) {
|
||||||
var conn net.Conn
|
var conn net.Conn
|
||||||
err := internal.WithSpan(ctx, "redis.dialer", func(ctx context.Context, span trace.Span) error {
|
err := internal.WithSpan(ctx, "redis.dial", func(ctx context.Context, span trace.Span) error {
|
||||||
var err error
|
|
||||||
span.SetAttributes(
|
span.SetAttributes(
|
||||||
label.String("db.connection_string", opt.Addr),
|
label.String("db.connection_string", opt.Addr),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var err error
|
||||||
conn, err = opt.Dialer(ctx, opt.Network, opt.Addr)
|
conn, err = opt.Dialer(ctx, opt.Network, opt.Addr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
_ = internal.RecordError(ctx, err)
|
_ = internal.RecordError(ctx, err)
|
||||||
|
|
Loading…
Reference in New Issue