Skip to content

Key metric issue with version 9 #1005

Open
@wagnerww

Description

@wagnerww

Description

I'm using Redis with the singleton pattern. Everything is in transaction mode, as shown in the print below. The problem is that in go-redis/v9 with nrredis-v9, even using Hook, it doesn't record the key when using GET/SET or any other operation.

Image

Steps to Reproduce

nrredis github.com/newrelic/go-agent/v3/integrations/nrredis-v9
"github.com/redis/go-redis/v9"

     var dataSourceName = fmt.Sprintf("%s:%d", host, port)

redisOpts := &redis.Options{
	Addr:         dataSourceName,
	Password:     password,
	DB:           0,
	MaxRetries:   5,
	PoolSize:     200,
	MinIdleConns: 100,
}

client := redis.NewClient(redisOpts)
   client.Get(ctx, key, offers, ttl).Err()

Expected Behavior

NR Diag results

Your Environment

Reproduction case

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions