Skip to content

fix(spec/compat): optional Sum in OTel histogram to NHCB handling - #5271

Draft
krajorama wants to merge 1 commit into
open-telemetry:mainfrom
krajorama:krajo/fix-opt-sum-to-nhcb
Draft

fix(spec/compat): optional Sum in OTel histogram to NHCB handling#5271
krajorama wants to merge 1 commit into
open-telemetry:mainfrom
krajorama:krajo/fix-opt-sum-to-nhcb

Conversation

@krajorama

@krajorama krajorama commented Aug 17, 2026

Copy link
Copy Markdown
Member

Blocked on general discussion in #5273 first.

Revealed in
#5125 (comment)

Fixes N/A

Changes

Specify that when converting an OpenTelemetry Histogram to a Prometheus Native Histogram with Custom Buckets (NHCB); if the Sum is not present, then drop the data point and do not convert it. The Sum is not optional in
native histograms and we should not make up a value instead of it.

For non-trivial changes, follow the change proposal process.

  • [N/A] Related issues #
  • [N/A] Related OTEP(s) #
  • Links to the prototypes (when adding or changing features)
  • CHANGELOG.md file updated for non-trivial changes
    • For trivial changes, include [chore] in the PR title to skip the changelog check
  • Spec compliance matrix updated if necessary
  • Declarative config data model is updated if SDK config surface is changed

@krajorama
krajorama requested a review from a team as a code owner August 17, 2026 07:49
Revealed in
open-telemetry#5125 (comment)

The protobuf format and model has the Sum as optional, however Sum in
native histograms is not optional. Drop the sample instead of making up
a value.

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Aug 17, 2026

Copy link
Copy Markdown

Pull request dashboard status

Waiting on the author · refreshed 2026-08-20 15:49 UTC

Move out of draft to request review.

Status above doesn't look right?
  • Just replied or pushed? Anything around or after the refresh time above may not be picked up yet — give it a few minutes.
  • Anything look wrong? Report it with what you expected; it helps us improve the dashboard.

@krajorama
krajorama force-pushed the krajo/fix-opt-sum-to-nhcb branch from 94c769c to 887108b Compare August 17, 2026 07:50
@krajorama
krajorama marked this pull request as draft August 17, 2026 08:41
@jmacd jmacd self-assigned this Aug 19, 2026
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.

3 participants