Repository navigation
sdk/metric: document unit-sensitivity of DefaultAggregationSelector - #8224
Merged
pellared merged 4 commits intoMay 26, 2026
Merged
Conversation
alliasgher
requested review from
MrAlias,
XSAM,
dashpole,
dmathieu,
flc1125 and
pellared
as code owners
April 17, 2026 13:36
alliasgher
force-pushed
the
docs/5891-histogram-buckets-unit
branch
from
April 17, 2026 13:37
c3da0c9 to
ac80092
Compare
Codecov Reportโ
All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8224 +/- ##
=====================================
Coverage 82.9% 82.9%
=====================================
Files 315 315
Lines 25109 25109
=====================================
+ Hits 20824 20826 +2
+ Misses 3911 3910 -1
+ Partials 374 373 -1
๐ New features to boost your workflow:
|
dmathieu
reviewed
Apr 17, 2026
dashpole
reviewed
Apr 17, 2026
dashpole
reviewed
Apr 17, 2026
The default ExplicitBucketHistogram boundaries returned by
DefaultAggregationSelector are tuned for millisecond-scale measurements
and are not rescaled when an instrument is created with
metric.WithUnit("s") or any other unit. Add a godoc note so users
reading the selector can see this and point them at the knobs for
overriding the boundaries.
Fixes open-telemetry#5891
Signed-off-by: Ali <alliasgher123@gmail.com>
alliasgher
force-pushed
the
docs/5891-histogram-buckets-unit
branch
from
April 17, 2026 14:00
ac80092 to
bf8dcac
Compare
dashpole
approved these changes
Apr 17, 2026
dmathieu
approved these changes
Apr 17, 2026
pellared
reviewed
May 26, 2026
pellared
approved these changes
May 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The default `ExplicitBucketHistogram` boundaries returned by `DefaultAggregationSelector` are tuned for millisecond-scale measurements and are not rescaled when an instrument is created with `metric.WithUnit("s")` or any other unit. Add a godoc note so users reading the selector can see this and point them at the knobs for overriding the boundaries.
This is the godoc change agreed to by @dmathieu in #5891 (comment). The actual rescaling behaviour is spec-blocked (the
blocked:specificationlabel on the issue) and is intentionally not touched here.Fixes #5891.
Checklist
#XXXX, will update with real PR number once assigned).