File tree Expand file tree Collapse file tree 3 files changed +36
-1
lines changed
src/opentelemetry/sdk/metrics/_internal Expand file tree Collapse file tree 3 files changed +36
-1
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [ Unreleased] ( https://github.com/open-telemetry/opentelemetry-python/compare/v1.13.0-0.34b0...HEAD )
9
9
10
- ## [ 1.13.0-0.34b0] ( https://github.com/open-telemetry/opentelemetry-python/releases/tag/v1.13.0-0.34b0 ) - 2022-09-26
10
+ - Update explicit histogram bucket boundaries
11
+ ([ #2947 ] ( https://github.com/open-telemetry/opentelemetry-python/pull/2947 ) )
12
+
13
+ ## [ 1.13.0-0.34b0] ( https://github.com/open-telemetry/opentelemetry-python/releases/tag/v1.13.0 ) - 2022-09-26
11
14
12
15
13
16
Original file line number Diff line number Diff line change @@ -227,7 +227,12 @@ def __init__(
227
227
100.0 ,
228
228
250.0 ,
229
229
500.0 ,
230
+ 750.0 ,
230
231
1000.0 ,
232
+ 2500.0 ,
233
+ 5000.0 ,
234
+ 7500.0 ,
235
+ 10000.0 ,
231
236
),
232
237
record_min_max : bool = True ,
233
238
):
@@ -454,7 +459,12 @@ def __init__(
454
459
100.0 ,
455
460
250.0 ,
456
461
500.0 ,
462
+ 750.0 ,
457
463
1000.0 ,
464
+ 2500.0 ,
465
+ 5000.0 ,
466
+ 7500.0 ,
467
+ 10000.0 ,
458
468
),
459
469
record_min_max : bool = True ,
460
470
) -> None :
Original file line number Diff line number Diff line change @@ -378,6 +378,28 @@ def test_collect(self):
378
378
second_histogram .time_unix_nano , first_histogram .time_unix_nano
379
379
)
380
380
381
+ def test_boundaries (self ):
382
+ self .assertEqual (
383
+ _ExplicitBucketHistogramAggregation (Mock (), 0 )._boundaries ,
384
+ (
385
+ 0.0 ,
386
+ 5.0 ,
387
+ 10.0 ,
388
+ 25.0 ,
389
+ 50.0 ,
390
+ 75.0 ,
391
+ 100.0 ,
392
+ 250.0 ,
393
+ 500.0 ,
394
+ 750.0 ,
395
+ 1000.0 ,
396
+ 2500.0 ,
397
+ 5000.0 ,
398
+ 7500.0 ,
399
+ 10000.0 ,
400
+ ),
401
+ )
402
+
381
403
382
404
class TestAggregationFactory (TestCase ):
383
405
def test_sum_factory (self ):
You can’t perform that action at this time.
0 commit comments