Explore: Add more error handling to Tempo trace download (#39045)

This commit is contained in:
Connor Lindsey 2021-09-09 09:49:45 -06:00 committed by GitHub
parent 84e821bdef
commit 5511383070
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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