Skip to content

Commit

Permalink
[APM] Use oldest exit span instead of newest
Browse files Browse the repository at this point in the history
For discovering connections, select the oldest span instead of the newest. This increases the possiblity of the relevant transaction being indexed into Elasticsearch at query time.
  • Loading branch information
dgieselaar committed Sep 27, 2021
1 parent 970394b commit 4674f3c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export const getDestinationMap = ({
] as const),
sort: [
{
'@timestamp': 'desc' as const,
'@timestamp': 'asc' as const,
},
],
},
Expand Down

0 comments on commit 4674f3c

Please sign in to comment.