Skip to content

[8.16] [APM] Breakdown Top dependencies API (#211441)#213796

Merged
cauemarcondes merged 7 commits intoelastic:8.16from
cauemarcondes:backport/8.16/pr-211441
Mar 11, 2025
Merged

[8.16] [APM] Breakdown Top dependencies API (#211441)#213796
cauemarcondes merged 7 commits intoelastic:8.16from
cauemarcondes:backport/8.16/pr-211441

Conversation

@cauemarcondes
Copy link
Contributor

Backport

This will backport the following commits from main to 8.16:

Questions ?

Please refer to the Backport tool documentation

closes elastic#210552

Before:
- Top dependencies API returned baseline and comparison timeseries data.

<img width="1208" alt="Screenshot 2025-02-14 at 14 27 28"
src="https://github.com/user-attachments/assets/f7770395-0575-4950-9acd-8808de5794b7"
/>

After:
- Removing timeseries and comparison data.
- The API is ~2s faster than before.
- Response size is also smaller after removing the timeseries data.

<img width="1203" alt="Screenshot 2025-02-14 at 14 26 34"
src="https://github.com/user-attachments/assets/5bd2ed09-1d2e-4ef1-8e55-6c3e9fba6348"
/>

Created a new API: `POST
/internal/apm/dependencies/top_dependencies/statistics` to fetch the
statistics for the visible dependencies.

---------

Co-authored-by: Carlos Crespo <crespocarlos@users.noreply.github.com>
Co-authored-by: Milosz Marcinkowski <38698566+miloszmarcinkowski@users.noreply.github.com>
(cherry picked from commit a6fd5b7)

# Conflicts:
#	x-pack/plugins/observability_solution/apm/public/components/app/dependencies_inventory/dependencies_inventory_table/index.tsx
#	x-pack/plugins/observability_solution/apm/public/components/shared/dependencies_table/index.tsx
#	x-pack/plugins/observability_solution/apm/server/lib/connections/get_connection_stats/get_stats.ts
#	x-pack/plugins/observability_solution/apm/server/lib/connections/get_connection_stats/index.ts
#	x-pack/plugins/observability_solution/apm/server/routes/dependencies/get_dependencies_timeseries_statistics.test.ts
#	x-pack/plugins/observability_solution/apm/server/routes/dependencies/get_dependencies_timeseries_statistics.ts
#	x-pack/plugins/observability_solution/apm/server/routes/dependencies/route.ts
#	x-pack/test/api_integration/deployment_agnostic/apis/observability/apm/service_overview/dependencies/index.spec.ts
#	x-pack/test/apm_api_integration/tests/dependencies/top_dependencies.spec.ts
#	x-pack/test/apm_api_integration/tests/service_overview/dependencies/generate_data.ts
@cauemarcondes cauemarcondes added the backport This PR is a backport of another PR label Mar 10, 2025
@cauemarcondes cauemarcondes enabled auto-merge (squash) March 10, 2025 17:18
@botelastic botelastic bot added ci:project-deploy-observability Create an Observability project Team:obs-ux-infra_services - DEPRECATED DEPRECATED - Use Team:obs-presentation. labels Mar 10, 2025
@elasticmachine
Copy link
Contributor

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

@github-actions
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@cauemarcondes cauemarcondes merged commit 6239ba9 into elastic:8.16 Mar 11, 2025
8 checks passed
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

  • Buildkite Build
  • Commit: fe8cbde
  • Kibana Serverless Image: docker.elastic.co/kibana-ci/kibana-serverless:pr-213796-fe8cbde059aa

Metrics [docs]

Async chunks

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

id before after diff
apm 2.5MB 2.5MB +2.8KB

Public APIs missing exports

Total count of every type that is part of your API that should be exported but is not. This will cause broken links in the API documentation system. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats exports for more detailed information.

id before after diff
apm 119 120 +1
Unknown metric groups

ESLint disabled line counts

id before after diff
@kbn/test-suites-xpack 732 731 -1
apm 68 69 +1
total -0

Total ESLint disabled count

id before after diff
@kbn/test-suites-xpack 757 756 -1
apm 80 81 +1
total -0

History

@cauemarcondes cauemarcondes deleted the backport/8.16/pr-211441 branch March 11, 2025 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR ci:project-deploy-observability Create an Observability project Team:obs-ux-infra_services - DEPRECATED DEPRECATED - Use Team:obs-presentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants