Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(eap): Include server-side sample rates in sampling weight #6333

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

jan-auer
Copy link
Member

@jan-auer jan-auer commented Sep 23, 2024

Adds support for the new server_sample_rate measurement on spans and includes
it in computing the final sampling factor and weight. This allows us to
extrapolate span metrics correctly in organizations that have dynamic sampling
enabled.

This also rounds the sampling factor to a precision of 10^-9 to avoid floating
point errors in the multiplication. For example, without the test using sample
rates of 10% and 20% respectively already shows floating point error.

In a follow-up, we might revise the schema and move these sample rates into
span.data.

See getsentry/relay#4063
See getsentry/relay#4038

@jan-auer jan-auer requested a review from a team as a code owner September 23, 2024 15:30
@jan-auer jan-auer merged commit 6feabc6 into master Sep 23, 2024
27 of 30 checks passed
@jan-auer jan-auer deleted the feat/eap-server-sampling branch September 23, 2024 17:19
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.

2 participants