Skip to content

Commit

Permalink
span.kind need not be cast to string
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Aug 4, 2020
1 parent cc85591 commit 6fc48a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/monitor/opentelemetry-exporter/src/utils/spanUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down

0 comments on commit 6fc48a5

Please sign in to comment.