Skip to content

Commit

Permalink
[8.14] [Fix] Add missing totalSeconds field (#182093) (#182095)
Browse files Browse the repository at this point in the history
# Backport

This will backport the following commits from `main` to `8.14`:
- [[Fix] Add missing totalSeconds field
(#182093)](#182093)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Alex
Szabo","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-04-30T10:09:02Z","message":"[Fix]
Add missing totalSeconds field (#182093)\n\n## Summary\r\nThe PR
#182001 was verified at a\r\npoint
where typechecking was missing for a bit, this allowed a
missing\r\nfield to slip in. This PR tries to fix
it.","sha":"370a7f5ec625fec1d082b331bfe431b68ed63688","branchLabelMapping":{"^v8.15.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","ci:project-deploy-observability","v8.14.0","v8.15.0"],"title":"[Fix]
Add missing totalSeconds
field","number":182093,"url":"https://github.com/elastic/kibana/pull/182093","mergeCommit":{"message":"[Fix]
Add missing totalSeconds field (#182093)\n\n## Summary\r\nThe PR
#182001 was verified at a\r\npoint
where typechecking was missing for a bit, this allowed a
missing\r\nfield to slip in. This PR tries to fix
it.","sha":"370a7f5ec625fec1d082b331bfe431b68ed63688"}},"sourceBranch":"main","suggestedTargetBranches":["8.14"],"targetPullRequestStates":[{"branch":"8.14","label":"v8.14.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.15.0","branchLabelMappingKey":"^v8.15.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/182093","number":182093,"mergeCommit":{"message":"[Fix]
Add missing totalSeconds field (#182093)\n\n## Summary\r\nThe PR
#182001 was verified at a\r\npoint
where typechecking was missing for a bit, this allowed a
missing\r\nfield to slip in. This PR tries to fix
it.","sha":"370a7f5ec625fec1d082b331bfe431b68ed63688"}}]}] BACKPORT-->

Co-authored-by: Alex Szabo <[email protected]>
  • Loading branch information
kibanamachine and delanni authored Apr 30, 2024
1 parent fa2f592 commit 5cefbfa
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 5cefbfa

Please sign in to comment.