From ce106a98cd3ad41bdfe08fede28b8264370ea67b Mon Sep 17 00:00:00 2001 From: Abhijeet Prasad Date: Wed, 29 Nov 2023 10:47:40 -0500 Subject: [PATCH] make unit optional --- packages/types/src/metrics.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/types/src/metrics.ts b/packages/types/src/metrics.ts index f09ea946cf41..544944fbec72 100644 --- a/packages/types/src/metrics.ts +++ b/packages/types/src/metrics.ts @@ -4,7 +4,7 @@ import type { MeasurementUnit } from './measurement'; export interface BaseMetric { name: string; timestamp: number; - unit: MeasurementUnit; + unit?: MeasurementUnit; tags?: { [key: string]: Primitive }; }