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

fix: Updated redis instrumentation to parse host/port when a url is not provided #2463

Merged
merged 2 commits into from
Aug 14, 2024

Conversation

bizob2828
Copy link
Member

…ot provided

Description

This PR addresses handling parsing host/port when provided to connect when assigning host and port on the spans for redis

How to Test

npm run versioned:internal redis

Related Issues

Closes #2462

jsumners-nr
jsumners-nr previously approved these changes Aug 13, 2024
Comment on lines +33 to +34
port: params.redis_port,
host: params.redis_host
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For future readers: the alternate form is tested in another suite:

const redis = require('redis')
client = redis.createClient({ socket: { port: params.redis_port, host: params.redis_host } })

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

Successfully merging this pull request may close these issues.

Update assigning host/port in redis when url is not available
2 participants