Skip to content

Commit ee56099

Browse files
[9.0] [APM] Remove span documents from getServiceAgent function (elastic#236732) (elastic#236944)
# Backport This will backport the following commits from `main` to `9.0`: - [[APM] Remove span documents from getServiceAgent function (elastic#236732)](elastic#236732) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Katerina","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-09-30T11:45:24Z","message":"[APM] Remove span documents from getServiceAgent function (elastic#236732)\n\n## Summary\n\ncloses elastic#236249 \n\nAdding the span document in the query negatively impacts the performance\nof the query","sha":"ef24924bb203f908921b756999967ccd160ff23d","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","backport:all-open","Team:obs-ux-infra_services","v9.2.0"],"title":"[APM] Remove span documents from getServiceAgent function","number":236732,"url":"https://github.com/elastic/kibana/pull/236732","mergeCommit":{"message":"[APM] Remove span documents from getServiceAgent function (elastic#236732)\n\n## Summary\n\ncloses elastic#236249 \n\nAdding the span document in the query negatively impacts the performance\nof the query","sha":"ef24924bb203f908921b756999967ccd160ff23d"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/236732","number":236732,"mergeCommit":{"message":"[APM] Remove span documents from getServiceAgent function (elastic#236732)\n\n## Summary\n\ncloses elastic#236249 \n\nAdding the span document in the query negatively impacts the performance\nof the query","sha":"ef24924bb203f908921b756999967ccd160ff23d"}}]}] BACKPORT--> Co-authored-by: Katerina <[email protected]>
1 parent 45c9471 commit ee56099

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

x-pack/solutions/observability/plugins/apm/server/routes/services/get_service_agent.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,7 @@ export async function getServiceAgent({
5454
const params = {
5555
terminate_after: 1,
5656
apm: {
57-
events: [
58-
ProcessorEvent.span,
59-
ProcessorEvent.error,
60-
ProcessorEvent.transaction,
61-
ProcessorEvent.metric,
62-
],
57+
events: [ProcessorEvent.error, ProcessorEvent.transaction, ProcessorEvent.metric],
6358
},
6459
body: {
6560
track_total_hits: 1,

0 commit comments

Comments
 (0)