-
Notifications
You must be signed in to change notification settings - Fork 373
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 priority sampling dropping traces #686
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thanks for digging into it!
I've left a few optional comments to suggest moving away from word sampling
in this context as we're actually assigning a priority and no sampling will ever be done.
But it might be just me holding a grudge against word sampling here, and would like to find a way to ensure no one will be misled by it (like I was :) ).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
really minor comments, otherwise I think this looks good.
input again from @LotharSee would be great, and I want to step through it again in a bit
The
Datadog::PrioritySampler
was incorrectly applying an internal sampler to some traces, and would mark them as rejected, thus preventing them from reaching the agent.This pull request removes this sampling behavior, and instead marks all spans as "sampled" when priority sampling is enabled, which allows all spans and traces to reach the agent.