Skip to content

[APM] Limit per_service query to transaction documents#143138

Merged
basepi merged 2 commits intoelastic:mainfrom
basepi:apm_per_service_telemetry
Oct 11, 2022
Merged

[APM] Limit per_service query to transaction documents#143138
basepi merged 2 commits intoelastic:mainfrom
basepi:apm_per_service_telemetry

Conversation

@basepi
Copy link
Copy Markdown
Contributor

@basepi basepi commented Oct 11, 2022

Summary

Update the per_service telemetry task to only query transaction documents.

This should solve the missing data issues around service.framework and similar fields that aren't present on all documents.

Checklist

No checklist items were applicable

For maintainers

Ref #137216

@basepi basepi added release_note:skip Skip the PR/issue when compiling release notes backport:prev-minor labels Oct 11, 2022
@basepi basepi requested a review from a team October 11, 2022 21:13
@botelastic botelastic bot added the Team:APM - DEPRECATED Use Team:obs-ux-infra_services. label Oct 11, 2022
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/apm-ui (Team:APM)

@basepi basepi changed the title Limit per_service query to transaction documents [APM] Limit per_service query to transaction documents Oct 11, 2022
executor: async ({ indices, search }) => {
const response = await search({
index: [indices.metric],
index: [indices.transaction],
Copy link
Copy Markdown
Contributor

@sorenlouv sorenlouv Oct 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Transaction events are subject to sampling so the returned stats are not going to be accurate. If we are ok with that I don't have any objections.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case we're not paying attention to any of the stats. We pretty much just query metadata from the transaction document, no counts or anything.

@basepi basepi enabled auto-merge (squash) October 11, 2022 21:35
@basepi basepi merged commit d260172 into elastic:main Oct 11, 2022
@kibana-ci
Copy link
Copy Markdown

💚 Build Succeeded

Metrics [docs]

✅ unchanged

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 11, 2022
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
8.5

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Oct 11, 2022
(cherry picked from commit d260172)

Co-authored-by: Colton Myers <colton@myers.fm>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:skip Skip the PR/issue when compiling release notes Team:APM - DEPRECATED Use Team:obs-ux-infra_services. v8.5.0 v8.6.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants