-
Notifications
You must be signed in to change notification settings - Fork 528
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
Additional default latency buckets for spanmetrics #1593
Additional default latency buckets for spanmetrics #1593
Conversation
I am fine with this change. I think most people running default Tempo are doing so at low volumes and will benefit from the additional buckets. Pinging @kvrhdn and @mapno for thoughts. I am good with merging this if you are. Is there a specific reason to not use exponential buckets as generated by Prometheus? If we just change the line to:
then we will get buckets:
|
I copied the default buckets from https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/spanmetricsprocessor/processor.go#L51 thinking that there might be a value in having the same. But using the exponential buckets is definitely cleaner. I'll update the pr |
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.
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'm fine with both options. Merging!
Agh, there are tests in the registry ( |
I've ran the whole test suite ( |
It failed again, but this time it 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.
Yeah, I'm also fine with this. Should we make the changelog more explicit about the additional buckets? This will increase active series of people using the defaults.
We aren't making the buckets itself wider, we are adding 2 more buckets.
Thanks for the patience. Merging! |
What this PR does:
Changes the default spanmetric latency bucket sizes to match the default sizes in https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/spanmetricsprocessor
It will be hard to size these default buckets to a size that fits all systems, but I think wider is better than narrower for a default. The current default maxes out at 4 seconds which imo is a bit low.
Checklist
Tests updatedTests passCHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]