-
Notifications
You must be signed in to change notification settings - Fork 781
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
Example to show how to achieve more consistent sampling across linked traces #4346
Conversation
…mpling and a links based sampler.
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.
I've left some non-blocking comments.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #4346 +/- ##
==========================================
+ Coverage 84.73% 84.78% +0.04%
==========================================
Files 300 300
Lines 12064 12064
==========================================
+ Hits 10223 10229 +6
+ Misses 1841 1835 -6 |
…pentelemetry-dotnet into kalyanaj-linkssampler
Co-authored-by: Reiley Yang <reyang@microsoft.com>
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.
I added two small nits, but no blocker for merging this.
…pentelemetry-dotnet into kalyanaj-linkssampler # Conflicts: # docs/trace/links-based-sampler/LinksAndParentBasedSampler.cs
@jmacd FYI on this PR (would love to get your review/feedback on this). |
This PR was marked stale due to lack of activity and will be closed in 7 days. Commenting or Pushing will instruct the bot to automatically remove the label. This bot runs once per day. |
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.
This proposal would also fit with consistent probability sampling, if the composite sampler delegates to a ParentConsistentProbabilityBased sampler and an Always-on consistent probability sampler depending on whether there are linked activities.
Thanks @oertl . Agree it would fit with it. However, since the consistent probability sampling spec is still experimental, wanted to scope this example to the current stable parent based sampling mechanism. In the future, once the consistent probability sampling mechanism becomes stable, we can update this to reflect how this would work with consistent probability sampling. Please let me know if you feel differently. Thanks! |
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.
I have left some non-blocking suggestions.
…able + minor editorial changes.
…pentelemetry-dotnet into kalyanaj-linkssampler
Co-authored-by: Utkarsh Umesan Pillai <utpilla@microsoft.com>
@jmacd FYI in case you want to review this as well. |
|
/easycla |
This is an example to show how to get more consistent sampling even across linked traces. Please see tradeoffs listed in README.md for when this approach can be helpful and when it won't help with consistent sampling across linked traces. This uses a composite sampler that includes a parent based sampler and a links based sampler.
Fixes #4345
Design discussion issue #
Changes
This shows the example of a composite sampler that has:
This composite sampler first delegates to the parent based sampler. If the parent based sampler decides to sample, then it decides to sample. However, if the parent based sampler decides to drop, the composite sampler delegates to the links based sampler. The links based sampler decides to sample if the activity has any linked activities and if at least ONE of those linked activities is sampled.
Merge requirement checklist
CHANGELOG.md
files updated for non-trivial changes