mirror of
https://github.com/grafana/grafana.git
synced 2025-02-13 00:55:47 -06:00
Explore: Add more error handling to Tempo trace download (#39045)
This commit is contained in:
parent
84e821bdef
commit
5511383070
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user