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

[backport] [pkg/otlp] Fix cumulative histogram handling in distributions mode #9624

Merged
merged 1 commit into from
Oct 25, 2021

Conversation

KSerrania
Copy link
Contributor

What does this PR do?

Backport of #9623 to the 7.32.x branch.

Fixes an issue in mapHistogramMetrics where the delta boolean wouldn't be passed to getSketchBuckets when the histograms mode is set to distributions.
Fixes an issue in getSketchBuckets where buckets were not tagged by bounds when getting and setting values in the points cache (in the cumulative histogram case). This led to all buckets of an histogram sharing the same cache key, making the resulting sketch wrong.
Fixes the TestNaNMetrics histogram case, which was missing its ExplicitBounds definition.
Adds missing unit tests for the distributions mode.

Motivation

Fix cumulative histogram handling for the 7.32.0 release.

Checklist

  • A release note has been added or the changelog/no-changelog label has been applied.
  • The need-change/operator and need-change/helm labels has been applied if applicable.
  • The appropriate team/.. label has been applied, if known.
  • If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
  • The config template has been updated if applicable.

…9623)

Backport of open-telemetry/opentelemetry-collector-contrib#5867 to the `pkg/otlp` package.

Fixes an issue in `mapHistogramMetrics` where the `delta` boolean wouldn't be passed to `getSketchBuckets` when the histograms mode is set to distributions.
Fixes an issue in `getSketchBuckets` where buckets were not tagged by bounds when getting and setting values in the points cache (in the cumulative histogram case). This led to all buckets of an histogram sharing the same cache key, making the resulting sketch wrong.
Fixes the `TestNaNMetrics` histogram case, which was missing its `ExplicitBounds` definition.
Adds missing unit tests for the distributions mode.
@KSerrania KSerrania merged commit e15314e into 7.32.x Oct 25, 2021
@KSerrania KSerrania deleted the kserrania/backport-9623 branch October 25, 2021 08:00
@mx-psi mx-psi added the component/otlp PRs and issues related to OTLP ingest label Feb 17, 2022
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.

2 participants