From a7fcfc320819ff3516faba77e02cd522048deea8 Mon Sep 17 00:00:00 2001 From: Mayur Kale Date: Thu, 26 Mar 2020 12:34:44 -0700 Subject: [PATCH] update lastUpdateTime in MeasureExactAggregator --- packages/opentelemetry-metrics/src/export/Aggregator.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/opentelemetry-metrics/src/export/Aggregator.ts b/packages/opentelemetry-metrics/src/export/Aggregator.ts index f7488b49c4..d8bd4373b9 100644 --- a/packages/opentelemetry-metrics/src/export/Aggregator.ts +++ b/packages/opentelemetry-metrics/src/export/Aggregator.ts @@ -73,6 +73,7 @@ export class MeasureExactAggregator implements Aggregator { this._distribution.sum += value; this._distribution.min = Math.min(this._distribution.min, value); this._distribution.max = Math.max(this._distribution.max, value); + this._lastUpdateTime = hrTime(); } toPoint(): Point {