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 v4 instrumentation to work with transactions(multi/exec) #2343

Merged
merged 2 commits into from
Jul 11, 2024

Conversation

bizob2828
Copy link
Member

Description

In redis pre 4 we were able to instrument the underlying command executor which traced all running commands. In v4 we tried to instrument all commands attached to client. This did not work with transactions(multi + exec). This PR refators the instrumentation to wrap the redis commands queue addCommand which is the equivalent of the pre v4 instrumentation.

How to Test

npm run versioned:internal redis

Related Issues

Closes #2339

@mrickard mrickard self-assigned this Jul 10, 2024
jsumners-nr
jsumners-nr previously approved these changes Jul 10, 2024
Copy link
Contributor

@jsumners-nr jsumners-nr left a comment

Choose a reason for hiding this comment

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

Looks good to me.

mrickard
mrickard previously approved these changes Jul 10, 2024
@bizob2828
Copy link
Member Author

I have to tweak something. The client options are broken now.

…sts for ensuring addCommand is associated to appropriate client
Copy link
Contributor

@jsumners-nr jsumners-nr left a comment

Choose a reason for hiding this comment

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

Looks good to me.

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.

Instrumentation for Redis v4's multi/exec namespace is missing
3 participants