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(instrumentation-redis-4): avoid shimmer warning by only wrapping multi/MULTI if they exist #1729

Merged

Conversation

trentm
Copy link
Contributor

@trentm trentm commented Oct 12, 2023

This fixes the "no original function multi to wrap" warning from shimmer when wrapping recent versions of @redis/client.

Refs: #1708

@trentm trentm requested a review from a team October 12, 2023 03:23
@github-actions github-actions bot requested a review from blumamir October 12, 2023 03:24
@codecov
Copy link

codecov bot commented Oct 12, 2023

Codecov Report

Merging #1729 (6ce02ba) into main (a8c225d) will decrease coverage by 0.03%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##             main    #1729      +/-   ##
==========================================
- Coverage   91.72%   91.69%   -0.03%     
==========================================
  Files         139      139              
  Lines        7128     7130       +2     
  Branches     1433     1435       +2     
==========================================
  Hits         6538     6538              
- Misses        590      592       +2     
Files Coverage Δ
...try-instrumentation-redis-4/src/instrumentation.ts 79.79% <50.00%> (-0.84%) ⬇️

@pichlermarc pichlermarc added bug Something isn't working priority:p3 Bugs which cause problems in user apps not related to correctness (performance, memory use, etc) pkg:instrumentation-redis-4 labels Oct 12, 2023
Copy link
Member

@pichlermarc pichlermarc left a comment

Choose a reason for hiding this comment

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

Thank you for investigating and fixing this 🙂

Co-authored-by: Marc Pichler <[email protected]>
@pichlermarc pichlermarc merged commit 247a81c into open-telemetry:main Oct 13, 2023
@dyladan dyladan mentioned this pull request Oct 13, 2023
@trentm trentm deleted the tm-fix-redis4-multi-shimmer-warning branch October 13, 2023 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pkg:instrumentation-redis-4 priority:p3 Bugs which cause problems in user apps not related to correctness (performance, memory use, etc)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants