-
Notifications
You must be signed in to change notification settings - Fork 510
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(httpx): Prevent Sentry baggage duplication #3728
Conversation
Sentry baggage will get added to an HTTPX request multiple times if the same request is repeated. To prevent this from occurring, we can strip any existing Sentry baggage before adding Sentry baggage to the request. Fixes #3709
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found.
Additional details and impacted files@@ Coverage Diff @@
## master #3728 +/- ##
==========================================
- Coverage 79.89% 79.89% -0.01%
==========================================
Files 137 137
Lines 15373 15382 +9
Branches 2609 2610 +1
==========================================
+ Hits 12282 12289 +7
- Misses 2221 2222 +1
- Partials 870 871 +1
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found a typo. Overall looks good to me. Can we also add an httpx test specifically for the scenario where we were accumulating baggage?
Co-authored-by: Ivana Kellyer <[email protected]>
Sentry baggage will get added to an HTTPX request multiple times if the same request is repeated. To prevent this from occurring, we can strip any existing Sentry baggage before adding Sentry baggage to the request.
Fixes #3709