mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[APM] check if the doc is missing span.name
(#162899)
## Summary
fixes: https://github.com/elastic/kibana/issues/154998
even though name is required in span spec it seems to be missed in some
documents causing the runtime error.
https://github.com/elastic/apm-data/blob/main/input/elasticapm/docs/spec/v2/span.json
35854feb
-2df0-4b59-af2e-b79a6f997497
This commit is contained in:
parent
f90c800c5f
commit
b7a38984bd
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ export async function getAggregatedCriticalPath({
|
|||
"agent.name": doc['agent.name'].value
|
||||
];
|
||||
|
||||
def isSpan = !doc['span.id'].empty;
|
||||
def isSpan = !doc['span.id'].empty && !doc['span.name'].empty;
|
||||
|
||||
if (isSpan) {
|
||||
id = doc['span.id'].value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue