fix: raise ValueError for unsorted ExplicitBucketHistogramAggregation boundaries (#5340)
* fix: raise ValueError for unsorted ExplicitBucketHistogramAggregation boundaries * docs: add changelog fragment for #5340 * fix: also reject NaN and infinite boundary values * Update .changelog/5340.fixed Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com> * fix: single-pass boundary validation with clearer error messages * Update aggregation.py Co-authored-by: Lukas Hering <40302054+herin049@users.noreply.github.com> * Apply suggestion from @xrmx * Update aggregation.py * fix: rename single-char vars and use math.inf instead of bare inf * Update opentelemetry-sdk/src/opentelemetry/sdk/metrics/_internal/aggregation.py accidentally changed this because i used inf without importing math previously so i replaced all instances of 'inf' with math.inf Co-authored-by: Lukas Hering <40302054+herin049@users.noreply.github.com> * fix: restore informs in docstrings corrupted by overeager inf replacement --------- Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com> Co-authored-by: Lukas Hering <40302054+herin049@users.noreply.github.com>
R
Rudra Dudhat committed
a00af34b7dade4f564a0154970b42803e3dda509
Parent: 262792c
Committed by GitHub <noreply@github.com>
on 7/6/2026, 8:14:42 AM