We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df23d88 commit c424be3Copy full SHA for c424be3
opentelemetry-sdk/src/opentelemetry/sdk/metrics/_internal/aggregation.py
@@ -764,16 +764,16 @@ def collect(
764
is AggregationTemporality.DELTA
765
):
766
767
- if value_positive is None and value_negative is None:
768
- return None
769
-
770
previous_collection_start_nano = (
771
self._previous_collection_start_nano
772
)
773
self._previous_collection_start_nano = (
774
collection_start_nano
775
776
+ if value_positive is None and value_negative is None:
+ return None
+
777
return ExponentialHistogramDataPoint(
778
attributes=self._attributes,
779
start_time_unix_nano=previous_collection_start_nano,
0 commit comments