From 6fc48a520c4e2aff77390c4413c5767f7879c8cb Mon Sep 17 00:00:00 2001 From: Ramya Achutha Rao Date: Mon, 3 Aug 2020 19:03:30 -0700 Subject: [PATCH] span.kind need not be cast to string --- sdk/monitor/opentelemetry-exporter/src/utils/spanUtils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/monitor/opentelemetry-exporter/src/utils/spanUtils.ts b/sdk/monitor/opentelemetry-exporter/src/utils/spanUtils.ts index e8c23a740489..1cf6398e07e8 100644 --- a/sdk/monitor/opentelemetry-exporter/src/utils/spanUtils.ts +++ b/sdk/monitor/opentelemetry-exporter/src/utils/spanUtils.ts @@ -210,9 +210,9 @@ export function readableSpanToEnvelope( default: // never if (logger) { - logger.error(`Unsupported span kind ${span.kind as string}`); + logger.error(`Unsupported span kind ${span.kind}`); } - throw new Error(`Unsupported span kind ${span.kind as string}`); + throw new Error(`Unsupported span kind ${span.kind}`); } envelope.data.baseData = { ...data, properties };