Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Discover][APM] Switch to document profile and split into spans/transactions #213116

Open
wants to merge 167 commits into
base: main
Choose a base branch
from

Conversation

iblancof
Copy link
Contributor

@iblancof iblancof commented Mar 4, 2025

Summary

Closes #211778 and #211871

This PR is a follow-up to issue #208693 and incorporates the suggestions from its associated PR #210612.

Note

Please note that most of the changes in this PR involve moving files, renaming data-test-subj attributes, updating imports, and not creating the files from scratch.

What's happening in this PR?

  • Transitioning from data source profile to document profile.
  • Splitting the traces document viewer into separate span and transaction viewers.
  • Enhancing the useTransaction hook to abort requests on component unmount.

As noted in the TODOs, a follow-up issue will focus on using for APM-configured indexes to enable the experience and retrieve the transaction.name for spans.

@iblancof iblancof added release_note:skip Skip the PR/issue when compiling release notes backport:skip This commit does not require backporting Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team v9.1.0 labels Mar 4, 2025
@iblancof iblancof self-assigned this Mar 4, 2025
@iblancof iblancof requested review from a team as code owners March 4, 2025 14:59
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

@iblancof iblancof requested a review from a team March 4, 2025 15:01
@iblancof iblancof requested a review from davismcphee March 4, 2025 17:20
…e-and-enable-the-traces-doc-viewer-by-index-and-field
@elasticmachine
Copy link
Contributor

elasticmachine commented Mar 4, 2025

💔 Build Failed

Failed CI Steps

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
discover 1179 1186 +7
unifiedDocViewer 277 284 +7
total +14

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
unifiedDocViewer 11 12 +1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
discover 917.8KB 918.7KB +875.0B
unifiedDocViewer 202.8KB 204.7KB +1.9KB
total +2.8KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
discover 44.2KB 44.3KB +89.0B
unifiedDocViewer 11.8KB 12.1KB +258.0B
total +347.0B
Unknown metric groups

API count

id before after diff
unifiedDocViewer 17 19 +2

async chunk count

id before after diff
unifiedDocViewer 10 12 +2

ESLint disabled line counts

id before after diff
unifiedDocViewer 9 10 +1

Total ESLint disabled count

id before after diff
unifiedDocViewer 9 10 +1

History

cc @iblancof

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team v9.1.0
Projects
None yet
3 participants