Skip to content

Conversation

ssams
Copy link
Contributor

@ssams ssams commented Jul 18, 2025

Changes

Set SimpleFixedSizeExemplarReservoir default size for exponential histograms based on configured maximum bucket count as recommended in the spec:

https://github.com/open-telemetry/opentelemetry-specification/blob/v1.46.0/specification/metrics/sdk.md#exemplar-defaults

Base2 Exponential Histogram Aggregation SHOULD use a SimpleFixedSizeExemplarReservoir with a reservoir equal to the smaller of the maximum number of buckets configured on the aggregation or twenty (e.g. min(20, max_buckets)).

For significant contributions please make sure you have completed the following items:

  • CHANGELOG.md updated for non-trivial changes
  • Unit tests have been added
  • Changes in public API reviewed

Note that I didn't update any tests (yet) - I couldn't find any existing tests for the fixed size reservoir? Thus wasn't sure if explicit tests are needed or if this is considered small / covered by other tests?

@ssams ssams requested a review from a team as a code owner July 18, 2025 07:48
Copy link

netlify bot commented Jul 18, 2025

Deploy Preview for opentelemetry-cpp-api-docs canceled.

Name Link
🔨 Latest commit 04e0139
🔍 Latest deploy log https://app.netlify.com/projects/opentelemetry-cpp-api-docs/deploys/687bd2abcf1149000867c0af

Copy link

linux-foundation-easycla bot commented Jul 18, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

Copy link

codecov bot commented Jul 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.00%. Comparing base (93475ff) to head (04e0139).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3551   +/-   ##
=======================================
  Coverage   90.00%   90.00%           
=======================================
  Files         220      220           
  Lines        7056     7056           
=======================================
  Hits         6350     6350           
  Misses        706      706           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ssams ssams requested a review from marcalff July 19, 2025 17:16
Copy link
Member

@marcalff marcalff left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the fix.

@marcalff marcalff merged commit c406864 into open-telemetry:main Jul 19, 2025
70 checks passed
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.

2 participants