From 8bdbe4943f4965a3cf3c81dc189374211c6bffd4 Mon Sep 17 00:00:00 2001 From: Diego Hurtado Date: Thu, 3 Feb 2022 09:45:23 -0600 Subject: [PATCH] Update opentelemetry-sdk/src/opentelemetry/sdk/_metrics/aggregation.py Co-authored-by: Srikanth Chekuri --- .../src/opentelemetry/sdk/_metrics/aggregation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opentelemetry-sdk/src/opentelemetry/sdk/_metrics/aggregation.py b/opentelemetry-sdk/src/opentelemetry/sdk/_metrics/aggregation.py index 9f1bee7a388..bb4747e3d8d 100644 --- a/opentelemetry-sdk/src/opentelemetry/sdk/_metrics/aggregation.py +++ b/opentelemetry-sdk/src/opentelemetry/sdk/_metrics/aggregation.py @@ -204,9 +204,9 @@ def collect(self) -> Optional[Histogram]: def _convert_aggregation_temporality( - previous_point: Optional[_PointVarT], - current_point: _PointVarT, aggregation_temporality: AggregationTemporality, + current_point: _PointVarT, + previous_point: Optional[_PointVarT] = None, ) -> _PointVarT: """Converts `current_point` to the requested `aggregation_temporality` given the `previous_point`.