Skip to content

Commit a3bd73f

Browse files
authored
Fix Discover trace waterfall behavior with duplicate spans (#244984)
Fixes #244238. Collapse query for trace items by span ID. Removes duplicates from query response.
1 parent e7ebe47 commit a3bd73f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

x-pack/solutions/observability/plugins/apm/server/routes/traces/get_unified_trace_items.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ export async function getUnifiedTraceItems({
144144
minimum_should_match: 1,
145145
},
146146
},
147+
collapse: { field: SPAN_ID },
147148
fields: [...fields, ...optionalFields],
148149
sort: [
149150
{ _score: 'asc' },

0 commit comments

Comments
 (0)