-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
[APM] Mobile crashes & errors #165892
[APM] Mobile crashes & errors #165892
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
x-pack/plugins/apm/public/components/app/mobile/error_group_overview/tabs/tabs.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was checking you PR.
What I would do is:
x-pack/plugins/apm/public/components/app/mobile/error_group_overview/tabs/tabs.tsx
- would receive an input, this input would be the selected tabId.
- conditionally this component will render errors or crashes depending on the selected tabId.
x-pack/plugins/apm/public/components/routing/mobile_service_detail/index.tsx
- Modify the params of the route
'/mobile-services/{serviceName}/errors'
to include our new paramtabId
(I'd recommend to use a more clear name for examplemobileSelectedTab
is the one being used already for other screens in mobile)
x-pack/plugins/apm/public/components/app/mobile/error_group_overview/index.tsx
- would use
useApmParams
to get what we have in the url, for this particular case we are interested intabId
- would pass the selectedTab (in this case
tabId
) toTabs
component
Then you wouldn't need to keep the state in Tabs
component converting it in sort of a pure visual component
💚 CLA has been signed |
d67e90b
to
6160c35
Compare
07c2b39
to
1217563
Compare
Pinging @elastic/apm-ui (Team:APM) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've noticed some code duplication between errors and crashes. We need to remove the unnecessary components
x-pack/plugins/apm/public/components/app/mobile/charts/mobile_error_treemap/index.tsx
Outdated
Show resolved
Hide resolved
...ck/plugins/apm/public/components/app/mobile/charts/mobile_crashes_treemap/treemap_select.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/apm/public/components/app/mobile/charts/mobile_crashes_treemap/index.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/apm/server/routes/mobile/crashes/distribution/get_buckets.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/apm/public/components/app/mobile/crash_group_details/error_sampler/index.tsx
Outdated
Show resolved
Hide resolved
…et_buckets.ts Co-authored-by: Katerina <kate@kpatticha.com>
added error/crash filter query utils removed 'experimental' note on overview
Checks is failing, but I get a "not found" when trying to view the details... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've identified two potential blockers that need to be addressed before merging, as well as a few UI enhancements that can be tackled separately.
- Crash details page is not accessible due to the params, it's an easy fix
- The filters don't persist between the overview and the details page.
Screen.Recording.2023-11-30.at.11.36.49.mov
I strongly recommend addressing the UI enhancements separately to avoid expanding the scope of the pull request.
- Changing the filters some of the charts are not displaying any loaders
- Most affected chart has no empty state so it looks like broken where there are no data. That was even before not related to this PR :D
- Layout of the crash/error details page is not consistent with the overview in terms of spaces and size of the panels
...public/components/app/mobile/errors_and_crashes_group_details/shared/error_sampler/index.tsx
Outdated
Show resolved
Hide resolved
...nts/app/mobile/errors_and_crashes_group_details/shared/error_sampler/error_sample_detail.tsx
Outdated
Show resolved
Hide resolved
fixed crash and error details link to propagate query parameters
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The "Crash type" link is broken when clicked; it needs to align with the errors table. (I think clicking on the type is updates the kuery)
Screen.Recording.2023-12-01.at.15.44.53.mov
Note
It seems inconsistent that we show the error rate for the error tab while displaying crash occurrences (in line graph vs bars) for the crashes tab, even though both tables present the occurrences in the last column. We could discuss and improve in a follow up
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Public APIs missing exports
Page load bundle
Unknown metric groupsAPI count
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
Summary
This PR adds back the
Errors
tab to mobile apm services under the titleErrors & Crashes
. This new page is split into too sections: errors, and crashes.Error Tab:
Crashes Tab:
Checklist
Delete any items that are not applicable to this PR.
Risk Matrix
Delete this section if it is not applicable to this PR.
Before closing this PR, invite QA, stakeholders, and other developers to identify risks that should be tested prior to the change/feature release.
When forming the risk matrix, consider some of the following examples and how they may potentially impact the change:
For maintainers