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

Fix Datadog::Tracing.reject! with correct metrics #3491

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

TonyCTHsu
Copy link
Contributor

What does this PR do?

Datadog::Tracing.reject! now only changes the priority sampling, as documented, instead of preventing the trace from reaching the Datadog Agent. Now, rejected traces will correctly count towards trace metrics.

This was always the intended behavior, but was incorrectly implemented.

@TonyCTHsu TonyCTHsu marked this pull request as ready for review February 26, 2024 22:32
@TonyCTHsu TonyCTHsu requested a review from a team as a code owner February 26, 2024 22:32
@TonyCTHsu TonyCTHsu added this to the 1.21.0 milestone Feb 26, 2024
@TonyCTHsu TonyCTHsu merged commit e34b266 into master Feb 27, 2024
219 of 220 checks passed
@TonyCTHsu TonyCTHsu deleted the tonycthsu/ensure-trace-reach-agent branch February 27, 2024 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants