Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Key metric issue with version 9 #1005

Open
wagnerww opened this issue Feb 28, 2025 · 2 comments
Open

Key metric issue with version 9 #1005

wagnerww opened this issue Feb 28, 2025 · 2 comments
Labels

Comments

@wagnerww
Copy link

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

@wagnerww wagnerww added the bug label Feb 28, 2025
@nr-swilloughby
Copy link
Contributor

Thanks for your bug report. We're looking into it.

@wagnerww
Copy link
Author

wagnerww commented Mar 6, 2025

Thanks Steve!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants