-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[processor/tailsamplingprocessor] Policy on span_count & min_spans #18215
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Seems reasonable to me. |
@mizhexiaoxiao it's yours! |
Thanks for the help! |
# sample traces with maximum 20 spans.
{
name: test-policy-10,
type: span_count,
span_count: {max_spans: 20}
},
# or not sample traces with more than 20 spans
{
name: test-policy-11,
type: span_count,
span_count: {min_spans: 20, invert_match: true}
}, Aren't those equivalent? Why not just have one of min_spans/max_spans? Or remove the invert match? |
I mentioned |
I think just a "num_spans" or just "num" should be fine. I know we use invert_match elsewhere, but perhaps we could use a different name? Like, |
I think adding Changing the configuration name may not be friendly to users who are using the span_count policy, but adding Possible configurations are as follows # sample traces with minimum 5 spans.
{
name: test-policy-1,
type: span_count,
span_count: {min_spans: 5}
} # sample traces with maximum 20 spans.
{
name: test-policy-1,
type: span_count,
span_count: {max_spans: 20}
} # sample traces range of 5 and 20 spans.
{
name: test-policy-1,
type: span_count,
span_count: {min_spans:5, max_spans: 20}
} @jpkrohling What's your thoughts on this? |
This looks cleaner and users would not be confused about the semantics. |
hello, for this feature, looks very straightforward but useful, could we please help out to get it out asap? Thanks so much! |
@mizhexiaoxiao @jpkrohling @TylerHelmuth Thank you all for the work! |
It will be available on the next release, scheduled for the week of 2023-03-20. If you are building your own distribution, you can use it already based on the main's current state. |
Component(s)
processor/tailsamplingprocessor - span_count
Is your feature request related to a problem? Please describe.
For now tail sampling processor policy on span_count only have min_spans to sample on traces contains minimal number of spans.
It is good to have max_spans to sample traces contains maximum number of spans, to help filter out giant traces. Usually we find out the giant traces are not helpful and takes a lot of data volume quota.
Describe the solution you'd like
Something similar
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: