Conversation
Semver Impact of This PR🟡 Minor (new features) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨
Bug Fixes 🐛
Documentation 📚
Internal Changes 🔧Deps
Other
Other
🤖 This preview updates automatically when you update the PR. |
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7705 +/- ##
=============================================
- Coverage 85.412% 85.149% -0.263%
=============================================
Files 487 487
Lines 29086 29158 +72
Branches 12592 12605 +13
=============================================
- Hits 24843 24828 -15
- Misses 4193 4278 +85
- Partials 50 52 +2
... and 15 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
- Parse org_id from DSN host (e.g. `o123.ingest.sentry.io` → `123`) - Add `strictTraceContinuation` and `orgId` options to Options - Add `effectiveOrgId` computed property (explicit orgId > DSN > nil) - Propagate `sentry-org_id` in Baggage and TraceContext - Add `shouldContinueTrace` to SentryPropagationContext implementing the decision matrix for trace continuation validation Spec: https://develop.sentry.dev/sdk/foundations/trace-propagation/#strict-trace-continuation
ff9122b to
bdc33d9
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
|
@antonis is this ready for review? |
|
Thank you for the ping @itaybre. Yes 😅 |

📜 Description
Implement Strict Trace Continuation.
org_idfrom DSN host (e.g.o123.ingest.sentry.io→"123")strictTraceContinuation(Bool) andorgId(String?) optionssentry-org_idin Baggage and TraceContextshouldContinueTrace(options:baggageOrgId:)implementing the decision matrix💡 Motivation and Context
Prevents cross-org trace continuation by validating org IDs in distributed traces.
Part of the Strict Trace Continuation initiative.
💚 How did you test it?
32 new unit tests covering DSN parsing, options resolution, decision matrix, baggage propagation, and trace context serialization.
📝 Checklist
sendDefaultPIIis enabled.