mirror of
https://github.com/redis/go-redis.git
synced 2025-07-29 17:41:15 +03:00
Tweak otel span and attr names
This commit is contained in:
@ -293,11 +293,10 @@ 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, "dialer", func(ctx context.Context, span trace.Span) error {
|
||||
err := internal.WithSpan(ctx, "redis.dialer", func(ctx context.Context, span trace.Span) error {
|
||||
var err error
|
||||
span.SetAttributes(
|
||||
label.String("redis.network", opt.Network),
|
||||
label.String("redis.addr", opt.Addr),
|
||||
label.String("db.connection_string", opt.Addr),
|
||||
)
|
||||
conn, err = opt.Dialer(ctx, opt.Network, opt.Addr)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user