Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gracefully handle spans without logs field (#2191)
Searching of spans throws "Cannot read properties of undefined (reading 'some')" exceptions and breaks UI To reproduce: 1. Open the attached file via _Search|Upload_: [opentelemetry (8).json](https://github.com/jaegertracing/jaeger-ui/files/14449091/opentelemetry.8.json) 2. Type `bootstrap` in search The following exception will be thrown and UI will crash completely: ``` chunk-JFYQRAKV.js?v=ef5bea20:9145 Uncaught TypeError: Cannot read properties of undefined (reading 'some') at isSpanAMatch (filter-spans.tsx:63:38) at Array.filter (<anonymous>) at TracePageImpl.filterSpans (filter-spans.tsx:68:41) at TracePageImpl.memoized [as _filterSpans] (chunk-X3V25DTT.js?v=ef5bea20:22:27) at TracePageImpl.render (index.tsx:358:32) at finishClassComponent (chunk-JFYQRAKV.js?v=ef5bea20:14694:39) at updateClassComponent (chunk-JFYQRAKV.js?v=ef5bea20:14659:32) at beginWork (chunk-JFYQRAKV.js?v=ef5bea20:15918:22) at beginWork$1 (chunk-JFYQRAKV.js?v=ef5bea20:19749:22) at performUnitOfWork (chunk-JFYQRAKV.js?v=ef5bea20:19194:20) ``` Signed-off-by: Maxim.Kolmakov <[email protected]>
- Loading branch information