From a655d2b1ca7df3ddf4457fe406a990f621c46a9f Mon Sep 17 00:00:00 2001 From: Bartlomiej Obecny Date: Sat, 6 Jun 2020 19:08:49 +0200 Subject: [PATCH] chore: creating new metric kind (#1145) * chore: creating new metric kind * chore: adding todo to remove observer kind later --- packages/opentelemetry-metrics/src/export/types.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/opentelemetry-metrics/src/export/types.ts b/packages/opentelemetry-metrics/src/export/types.ts index 8a34a34d1b..33dd539972 100644 --- a/packages/opentelemetry-metrics/src/export/types.ts +++ b/packages/opentelemetry-metrics/src/export/types.ts @@ -21,8 +21,12 @@ import { Resource } from '@opentelemetry/resources'; /** The kind of metric. */ export enum MetricKind { COUNTER, + UP_DOWN_COUNTER, VALUE_RECORDER, - OBSERVER, + OBSERVER, // @TODO remove later #1146 + SUM_OBSERVER, + UP_DOWN_SUM_OBSERVER, + VALUE_OBSERVER, } /** Sum returns an aggregated sum. */