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 };