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

otlp_stats_sink: Fix otlp histogram buckets #31197

Merged
merged 3 commits into from
Dec 12, 2023

Conversation

ohadvano
Copy link
Contributor

@ohadvano ohadvano commented Dec 6, 2023

Additional Description: Fixes #31016. The flushed histogram "count" did not match the bucket counts. Two fixes were required - the bucket counts are disjointed, i.e. do not take the previous bucket count into consideration, additional bucket is added to indicate the count of values outside the explicit bounds of the histogram, i.e. to +inf.
Risk Level: medium
Testing: unit tests
Docs Changes: none
Release Notes: none
Platform Specific Features: none

Signed-off-by: ohadvano <ohadvano@gmail.com>
@ohadvano
Copy link
Contributor Author

ohadvano commented Dec 6, 2023

Hi, @jmarantz, could you please do a first pass on this PR?

jmarantz
jmarantz previously approved these changes Dec 7, 2023
Copy link
Contributor

@jmarantz jmarantz left a comment

Choose a reason for hiding this comment

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

over to extension owners for final review

@dashpole
Copy link

dashpole commented Dec 7, 2023

Thanks @ohadvano! This looks correct to me

@jmarantz jmarantz assigned mattklein123 and unassigned yanavlasov and itamarkam Dec 7, 2023
Signed-off-by: ohadvano <49730675+ohadvano@users.noreply.github.com>
Signed-off-by: ohadvano <49730675+ohadvano@users.noreply.github.com>
@mattklein123 mattklein123 merged commit d796a08 into envoyproxy:main Dec 12, 2023
53 checks passed
@ohadvano ohadvano deleted the fix_histogram_counts branch December 12, 2023 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OpenTelemetry stats reports histograms incorrectly
6 participants