Skip to content

fix(spans): Do dynamic sampling after normalization#6121

Closed
loewenheim wants to merge 3 commits into
masterfrom
sebastian/dynamic-sampling-normalize
Closed

fix(spans): Do dynamic sampling after normalization#6121
loewenheim wants to merge 3 commits into
masterfrom
sebastian/dynamic-sampling-normalize

Conversation

@loewenheim

Copy link
Copy Markdown
Contributor

Follow-up to #6042. Doing dynamic sampling before normalization means that the is_segment flag on produced metrics can vary depending on whether the span is sampled or not. Therefore, we now do dynamic sampling after normalization.

Follow-up to #6042. Doing dynamic sampling before normalization means
that the `is_segment` flag on produced metrics can vary depending on
whether the span is sampled or not. Therefore, we now do dynamic sampling
after normalization.
@loewenheim loewenheim requested a review from a team as a code owner June 23, 2026 09:16

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit a3bf136. Configure here.

Comment thread relay-server/src/processing/spans/mod.rs
@loewenheim loewenheim self-assigned this Jun 23, 2026
Comment thread relay-server/src/processing/spans/mod.rs
Comment thread tests/integration/test_spans_standalone.py
@loewenheim loewenheim enabled auto-merge June 23, 2026 10:51
@loewenheim

Copy link
Copy Markdown
Contributor Author

#6126 sidesteps the entire problem by modifying the is_segment field before we even get to the V2 pipeline. Therefore I'm closing this in favor of that PR.

@loewenheim loewenheim closed this Jun 23, 2026
auto-merge was automatically disabled June 23, 2026 12:42

Pull request was closed

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.

3 participants