Skip to content

fix(share/shwap/getters): set span err only if all getters truly failed, otherwise just record err in span for single getter failure #4130

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renaynay
Copy link
Member

Span records all getters failed if only 1 getter failed but get op succeeds on 2nd.

@renaynay renaynay added the kind:fix Attached to bug-fixing PRs label Feb 18, 2025
@renaynay renaynay self-assigned this Feb 18, 2025
@codecov-commenter
Copy link

codecov-commenter commented Feb 18, 2025

Codecov Report

Attention: Patch coverage is 81.25000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 44.82%. Comparing base (2469e7a) to head (7411f72).
Report is 450 commits behind head on main.

Files with missing lines Patch % Lines
share/shwap/getters/cascade.go 81.25% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4130      +/-   ##
==========================================
- Coverage   44.83%   44.82%   -0.02%     
==========================================
  Files         265      309      +44     
  Lines       14620    22704    +8084     
==========================================
+ Hits         6555    10177    +3622     
- Misses       7313    11441    +4128     
- Partials      752     1086     +334     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@renaynay renaynay marked this pull request as draft February 18, 2025 13:36
@renaynay renaynay force-pushed the get-err-record-prop branch from 25ededc to 34f5c6b Compare March 5, 2025 14:33
…ed, otherwise record err in span for single getter failure, not top level

refactor(share/shwap/getters): Try to make err reporting more explicit in cascadeGetters
@renaynay renaynay force-pushed the get-err-record-prop branch from 34f5c6b to 7411f72 Compare March 5, 2025 14:34
@renaynay renaynay marked this pull request as ready for review March 5, 2025 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:fix Attached to bug-fixing PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants