Skip to content

Commit

Permalink
[Fix] Add missing totalSeconds field (elastic#182093)
Browse files Browse the repository at this point in the history
## Summary
The PR elastic#182001 was verified at a
point where typechecking was missing for a bit, this allowed a missing
field to slip in. This PR tries to fix it.
  • Loading branch information
delanni authored and mbondyra committed Apr 30, 2024
1 parent 3e7dafd commit e79f435
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e79f435

Please sign in to comment.