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`.