-
Notifications
You must be signed in to change notification settings - Fork 897
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
Sampling when span has links #1877
Comments
My team was facing this problem recently. We went with using a separate So we ended up with a sampler chain: On the downside, this makes sampling volume harder to predict. And it doesn't consider links to non-root spans. A tail-based sampling approach would be needed to cover that. |
Thanks for sharing @pyohannes! Just to confirm, does the Coincidentally I happened to implement a package-private |
We're falling back to the
We didn't need any builder.SetSampler(new ParentBasedSampler(new LinkBasedSampler(new TraceIdRatioBasedSampler(ratio)))); We followed the logic of the |
Currently the ParentBased sampler only defines behavior for remote parents. Should it also define behavior that looks at Links? Or even if it's not appropriate for the standard ParentBased sampler, does anyone have any recommendations for sampling in the context of links? For example, one approach could be
I'm wondering if anything like this should be added to the spec, or if anyone has any pointers for this.
The text was updated successfully, but these errors were encountered: