Skip to content
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

deltatocumulative: Fix selection of the target scale for exponential histograms #37432

Merged
merged 2 commits into from
Jan 23, 2025

Conversation

euroelessar
Copy link
Contributor

Description

While addressing comments a bug was added to the logic of calculating of the desired scale and it slipped through tests.
Fix the bug (use min instead of max) and update tests to avoid regressions in the future.

Link to tracking issue

Fixes #37416

Testing

Update tests to separately cover positive and negative buckets.

Documentation

n/a

@mx-psi
Copy link
Member

mx-psi commented Jan 23, 2025

@tiit-clarifai Would you like to review?

Copy link

@tiit-clarifai tiit-clarifai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested these changes and it correctly scaled down to less than 160 positive buckets. Thanks!

@mx-psi mx-psi merged commit 5d0a771 into open-telemetry:main Jan 23, 2025
164 checks passed
@github-actions github-actions bot added this to the next release milestone Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[processor/deltatocumulative] Exponential histogram buckets exceed maxBuckets
4 participants