From 5511383070e2a658c21839e16a5061ea1debc958 Mon Sep 17 00:00:00 2001 From: Connor Lindsey Date: Thu, 9 Sep 2021 09:49:45 -0600 Subject: [PATCH] Explore: Add more error handling to Tempo trace download (#39045) --- public/app/plugins/datasource/tempo/resultTransformer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }