| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Codecov Results 📊✅ 95930 passed | ⏭️ 6340 skipped | Total: 102270 | Pass Rate: 93.8% | Execution Time: 336m 27s 📊 Comparison with Base Branch
All tests are passing successfully. ✅ Patch coverage is 83.33%. Project has 2512 uncovered lines.
@@ Coverage Diff @@
## main #PR +/-##
==========================================
+ Coverage 89.65% 89.67% +0.02%
==========================================
Files 193 193 —
Lines 24324 24321 -3
Branches 8572 8572 —
==========================================
+ Hits 21807 21809 +2
- Misses 2517 2512 -5
- Partials 1395 1397 +2Generated by Codecov Action |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM, just noticed a small thing
Sorry, something went wrong.
| "sentry-sample_rate": "0.75", | ||
| "sentry-sample_rand": "0.500000", | ||
| "sentry-sampled": "true", |
There was a problem hiding this comment.
Why not add these to the initial definition of incoming_baggage above?
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks for noticing! Copied this test from another one that only did this conditionally and missed this.
Fixed in ddc7386
Sorry, something went wrong.
…tsentry#6863) ### Description We were making the wrong sampling decision in a specific case: when the incoming `sentry-trace` ended in `-0`, but the incoming baggage had a combination of `sentry-sample_rate` and `sentry-sample_rand` that would've actually produced a positive sampling decision, we would prioritize the information from the baggage over the parent sampling decision from `sentry-trace`. This PR aligns the behavior with the legacy codepath, where we'd set `parent_sampled` as the new `sample_rate`. #### Issues * closes https://linear.app/getsentry/issue/PY-2618/incorrect-sampling-decision-propagated-in-some-cases-in-span-streaming * closes getsentry#6856 #### Reminders - Please add tests to validate your changes, and lint your code using `uv run ruff`. - Add GH Issue ID _&_ Linear ID (if applicable) - PR title should use [conventional commit](https://develop.sentry.dev/engineering-practices/commit-messages/#type) style (`feat:`, `fix:`, `ref:`, `meta:`) - For external contributors: [CONTRIBUTING.md](https://github.com/getsentry/sentry-python/blob/master/CONTRIBUTING.md), [Sentry SDK development docs](https://develop.sentry.dev/sdk/), [Discord community](https://discord.gg/Ww9hbqr)
| Back | FazBrowse Home | New Git URL |
Description
We were making the wrong sampling decision in a specific case: when the incoming sentry-trace ended in -0, but the incoming baggage had a combination of sentry-sample_rate and sentry-sample_rand that would've actually produced a positive sampling decision, we would prioritize the information from the baggage over the parent sampling decision from sentry-trace.
This PR aligns the behavior with the legacy codepath, where we'd set parent_sampled as the new sample_rate.
Issues
Reminders