File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
opentelemetry-sdk/src/opentelemetry/sdk/metrics/_internal Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -756,6 +756,28 @@ def _create_aggregation(
756
756
raise Exception (f"Invalid instrument type { type (instrument )} found" )
757
757
758
758
759
+ class ExponentialBucketHistogramAggregateion (Aggregation ):
760
+
761
+ def __init__ (
762
+ self ,
763
+ max_size : int = 160 ,
764
+ ):
765
+
766
+ self ._max_size = max_size
767
+
768
+ def _create_aggregation (
769
+ self ,
770
+ instrument : Instrument ,
771
+ attributes : Attributes ,
772
+ start_time_unix_nano : int ,
773
+ ) -> _Aggregation :
774
+ return _ExponentialBucketHistogramAggregation (
775
+ attributes ,
776
+ start_time_unix_nano ,
777
+ max_size = self ._max_size ,
778
+ )
779
+
780
+
759
781
class ExplicitBucketHistogramAggregation (Aggregation ):
760
782
"""This aggregation informs the SDK to collect:
761
783
You can’t perform that action at this time.
0 commit comments