-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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] Break down transaction table api removing the sparklines #88946
[APM] Break down transaction table api removing the sparklines #88946
Conversation
d862a55
to
ec05dc2
Compare
ec05dc2
to
22b3729
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.
Works well.
...ins/apm/public/components/app/service_overview/service_overview_transactions_table/index.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/apm/server/lib/services/get_service_transaction_groups/index.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/apm/server/lib/services/get_service_transaction_groups_metrics/index.ts
Outdated
Show resolved
Hide resolved
x-pack/test/apm_api_integration/basic/tests/transactions/transactions_groups_metrics.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/apm/server/lib/services/get_service_transaction_groups_metrics/index.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/apm/server/lib/services/get_service_transaction_groups_metrics/index.ts
Outdated
Show resolved
Hide resolved
...er/lib/services/get_service_transaction_groups/get_timeseries_data_for_transaction_groups.ts
Outdated
Show resolved
Hide resolved
...ins/apm/public/components/app/service_overview/service_overview_transactions_table/index.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/apm/server/lib/services/get_service_transaction_groups_metrics/index.ts
Outdated
Show resolved
Hide resolved
...ins/apm/public/components/app/service_overview/service_overview_transactions_table/index.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.
There's now a bug where comparison data is not refetched if the UI filters change or the latency aggregation type changes. Requesting changes to make sure this is not accidentally merged.
I see now a real reason of having the requesId, if you change the latencyAggregationType and the same list of transaction is returned the comparison statistics won't be refetched. Adding it back, and fixing the bug. |
Pinging @elastic/uptime (Team:uptime) |
@dgieselaar I just fixed the bug. primary-comparison-stats.mov |
urlParams: { start, end, latencyAggregationType }, | ||
} = useUrlParams(); | ||
|
||
const { data = INITIAL_STATE, status, requestId } = useFetcher( |
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.
This file is getting quite big. It might help if you extract the data fetching, including some of the pagination logic eg:
const {
currentPagePrimaryStatistics,
primaryStatisticsStatus,
totalCount,
requestId,
} = usePrimaryStatisticsFetcher({ serviceName, pageIndex, sort });
You can do the same with the comparison statistics
lgtm. I can't reproduce the bug that @dgieselaar found previously. |
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.
UX App, only tests for useFetcher are updated, LGTM !!
@cauemarcondes any idea why that hook needs requestId now?
@elasticmachine merge upstream |
I've reverted both requestId changes - the way it was implemented was that requestId would change whenever a new request starts. The previous implementation was that it would only change when a new request ends. I've also added support for transaction duration metrics. Once CI is green I'll merge. |
💚 Build SucceededMetrics [docs]Module Count
Async chunks
History
To update your PR or re-run it, just comment with: |
…ic#88946) Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
Backport result
|
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co> Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com> Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
closes #88938
To dos:
/api/apm/services/opbeans-java/transactions/groups/primary_statistics
:/api/apm/services/opbeans-java/transactions/groups/comparison_statistics
:transactions.table.mov