Skip to content

Commit

Permalink
Try resetting previous_collection_start_nano
Browse files Browse the repository at this point in the history
  • Loading branch information
ocelotl committed Jun 27, 2024
1 parent df23d88 commit c424be3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -764,16 +764,16 @@ def collect(
is AggregationTemporality.DELTA
):

if value_positive is None and value_negative is None:
return None

previous_collection_start_nano = (
self._previous_collection_start_nano
)
self._previous_collection_start_nano = (
collection_start_nano
)

if value_positive is None and value_negative is None:
return None

return ExponentialHistogramDataPoint(
attributes=self._attributes,
start_time_unix_nano=previous_collection_start_nano,
Expand Down

0 comments on commit c424be3

Please sign in to comment.