Skip to content

ref(ds): Specify how the DSC is interpreted in Relay#17899

Merged
Dav1dde merged 4 commits into
masterfrom
dav1d/ds-dsc-rewrite
Jun 3, 2026
Merged

ref(ds): Specify how the DSC is interpreted in Relay#17899
Dav1dde merged 4 commits into
masterfrom
dav1d/ds-dsc-rewrite

Conversation

@Dav1dde
Copy link
Copy Markdown
Member

@Dav1dde Dav1dde commented May 27, 2026

DESCRIBE YOUR PR

Adds more information how the DSC is interpreted and applied in Relay.

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.

  • Urgent deadline (GA date, etc.):
  • Other deadline:
  • None: Not urgent, can wait up to 1 week+

PRE-MERGE CHECKLIST

Make sure you've checked the following before merging your changes:

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

@vercel
Copy link
Copy Markdown

vercel Bot commented May 27, 2026

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

Project Deployment Actions Updated (UTC)
develop-docs Ready Ready Preview, Comment Jun 3, 2026 1:40pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
sentry-docs Ignored Ignored Preview Jun 3, 2026 1:40pm

Request Review

@Dav1dde Dav1dde requested review from a team and shellmayr May 27, 2026 07:32
@Dav1dde Dav1dde force-pushed the dav1d/ds-dsc-rewrite branch from 5545fae to 84baf8c Compare May 27, 2026 07:34
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm not sure what "Requires DSC" meas in this case, can we be more specific what the condition here is?

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.

Payload requires DSC, is that better? 🤔

Comment thread develop-docs/application-architecture/dynamic-sampling/architecture.mdx Outdated
Comment thread develop-docs/application-architecture/dynamic-sampling/architecture.mdx Outdated
Comment thread develop-docs/application-architecture/dynamic-sampling/architecture.mdx Outdated
Copy link
Copy Markdown
Contributor

@coolguyzone coolguyzone left a comment

Choose a reason for hiding this comment

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

LGTM


A dynamic sampling context which originates from either the same project or a project within the same organization is considered valid and Relay will apply the sampling rules from the root project as described in the previous section.

DSCs originating in different organizations or unknown projects are discarded and Relay will re-compute a DSC based on the data of the payload and scoped to the current project. The computed dynamic sampling context is then used to apply the dynamic sampling rules.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is this the only case where we generate a DSC from the payload? Or do we also do it if the DSC is missing but not required?

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.

Should be the only case, no DSC ends up at 100% SR

Co-authored-by: Simon Hellmayr <shellmayr@users.noreply.github.com>
@Dav1dde Dav1dde enabled auto-merge (squash) June 3, 2026 13:35
@Dav1dde Dav1dde merged commit cdab818 into master Jun 3, 2026
21 checks passed
@Dav1dde Dav1dde deleted the dav1d/ds-dsc-rewrite branch June 3, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants