You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: Implement strict trace continuation
Add support for org_id extraction from DSN and strict trace continuation
to control whether the SDK continues traces from third-party services.
Changes:
- Extract org_id from DSN host (e.g., "o123.ingest.sentry.io" -> "123")
- Add `org_id` config option to explicitly set the organization ID
- Add `strict_trace_continuation` boolean config option (default: false)
- Propagate org_id in baggage as `sentry-org_id`
- Validate incoming trace org_id against SDK org_id per decision matrix
- Add comprehensive tests for all scenarios
Closes#2865
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: Update http_spec baggage assertion to include sentry-org_id
The test DSN uses o447951.ingest.sentry.io, so the new org_id
propagation correctly adds sentry-org_id=447951 to baggage.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* cleanup
* remove useless accessor and call to_s on org_id setter
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Neel Shah <neel.shah@sentry.io>
0 commit comments