From a7e6df3e2fff1e5ef562e9c401dd066eaaf62a4b Mon Sep 17 00:00:00 2001 From: Dario Gieselaar Date: Tue, 28 Sep 2021 08:20:55 +0200 Subject: [PATCH] [APM] Use oldest exit span instead of newest (#113133) --- .../lib/connections/get_connection_stats/get_destination_map.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/apm/server/lib/connections/get_connection_stats/get_destination_map.ts b/x-pack/plugins/apm/server/lib/connections/get_connection_stats/get_destination_map.ts index a1f74441629d4..be6518708eddb 100644 --- a/x-pack/plugins/apm/server/lib/connections/get_connection_stats/get_destination_map.ts +++ b/x-pack/plugins/apm/server/lib/connections/get_connection_stats/get_destination_map.ts @@ -111,7 +111,7 @@ export const getDestinationMap = ({ ] as const), sort: [ { - '@timestamp': 'desc' as const, + '@timestamp': 'asc' as const, }, ], },