diff --git a/public/app/plugins/datasource/tempo/resultTransformer.ts b/public/app/plugins/datasource/tempo/resultTransformer.ts index cb4b3dc7abc..5c835719444 100644 --- a/public/app/plugins/datasource/tempo/resultTransformer.ts +++ b/public/app/plugins/datasource/tempo/resultTransformer.ts @@ -440,7 +440,7 @@ function getOTLPStatus(tags: TraceKeyValuePair[]): SpanStatus | undefined { } function getOTLPEvents(logs: TraceLog[]): collectorTypes.opentelemetryProto.trace.v1.Span.Event[] | undefined { - if (!logs.length) { + if (!logs || !logs.length) { return undefined; }