Skip to content

docs(sdk): Adjust and clarify strict trace continuation spec#18744

Draft
szokeasaurusrex wants to merge 1 commit into
masterfrom
szokeasaurusrex/update-strict-trace-continuation
Draft

docs(sdk): Adjust and clarify strict trace continuation spec#18744
szokeasaurusrex wants to merge 1 commit into
masterfrom
szokeasaurusrex/update-strict-trace-continuation

Conversation

@szokeasaurusrex

@szokeasaurusrex szokeasaurusrex commented Jul 16, 2026

Copy link
Copy Markdown
Member

This PR proposes clarifying strict trace continuation so its behavior is only specified when the SDK knows its own organization ID. When both the SDK and incoming trace lack an organization ID, the trace may have come from a poorly configured or older third-party SDK, not the same organization. Strict trace continuation therefore has no useful defined behavior without SDK organization awareness. Users who enable the option likely intend to verify the trace's organization, so SDKs should warn when the organization ID is missing and may prevent that configuration where appropriate.

Separate the baseline organization-ID continuation rules from strict trace continuation. The default rules continue traces unless both known organization IDs differ; strict mode additionally rejects traces that omit an organization ID when the SDK has one. Keeping these concepts separate makes the specification easier to reason about and avoids treating an SDK without organization awareness as a valid strict-continuation use case.

Resolves SDK-1365

This PR proposes clarifying strict trace continuation so its behavior is only specified when the SDK knows its own organization ID. When both the SDK and incoming trace lack an organization ID, the trace may have come from a poorly configured or older third-party SDK, not the same organization. Strict trace continuation therefore has no useful defined behavior without SDK organization awareness. Users who enable the option likely intend to verify the trace's organization, so SDKs should warn when the organization ID is missing and may prevent that configuration where appropriate.

Separate the baseline organization-ID continuation rules from strict trace continuation. The default rules continue traces unless both known organization IDs differ; strict mode additionally rejects traces that omit an organization ID when the SDK has one. Keeping these concepts separate makes the specification easier to reason about and avoids treating an SDK without organization awareness as a valid strict-continuation use case.

Resolves [SDK-1365](https://linear.app/getsentry/issue/SDK-1365/update-develop-docs-for-strict-trace-continuation-proposal)
@linear-code

linear-code Bot commented Jul 16, 2026

Copy link
Copy Markdown

SDK-1365

@vercel

vercel Bot commented Jul 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
develop-docs Ready Ready Preview Jul 16, 2026 9:52am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
sentry-docs Ignored Ignored Preview Jul 16, 2026 9:52am

Request Review

@github-actions github-actions Bot added the sdk-develop-docs PRs touching develop-docs/sdk label Jul 16, 2026
Comment on lines +5 to +15
spec_version: 1.10.0
spec_status: stable
spec_depends_on:
- id: sdk/foundations/transport/envelopes
version: ">=1.0.0"
- id: sdk/foundations/state-management/scopes
version: ">=1.0.0"
spec_changelog:
- version: 1.10.0
date: 2026-07-16
summary: Clarified trace continuation and strict trace continuation behavior

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The clanker added these changes, is it necessary to write this manually, or is there some automation to update the changelog here?

@szokeasaurusrex
szokeasaurusrex requested a review from cleptric July 16, 2026 09:52
@szokeasaurusrex szokeasaurusrex changed the title docs(sdk): Clarify strict trace continuation requirements docs(sdk): Adjust and clarify strict trace continuation spec Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sdk-develop-docs PRs touching develop-docs/sdk

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant