Explore: Add more error handling to Tempo trace download (#39045)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user