From a10e97f21d0907fe8bb99a08463cbc855c1cbad6 Mon Sep 17 00:00:00 2001 From: Alex Szabo Date: Tue, 30 Apr 2024 11:58:43 +0200 Subject: [PATCH] fix: add missing totalSeconds field --- .../observability_solution/profiling/server/routes/apm.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/x-pack/plugins/observability_solution/profiling/server/routes/apm.ts b/x-pack/plugins/observability_solution/profiling/server/routes/apm.ts index f77d121a699d2..e5119c17ee5da 100644 --- a/x-pack/plugins/observability_solution/profiling/server/routes/apm.ts +++ b/x-pack/plugins/observability_solution/profiling/server/routes/apm.ts @@ -83,6 +83,7 @@ export function registerTopNFunctionsAPMTransactionsRoute({ indices: transactionIndices.split(','), stacktraceIdsField: 'transaction.profiler_stack_trace_ids', limit: 1000, + totalSeconds: endSecs - startSecs, }); const apmFunction = apmFunctions.TopN.find( (topNFunction) => topNFunction.Frame.FunctionName === functionName