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