Skip to content

[9.0] [APM] Breakdown Top dependencies API (#211441)#213789

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

[9.0] [APM] Breakdown Top dependencies API (#211441)#213789
cauemarcondes merged 4 commits intoelastic:9.0from
cauemarcondes:backport/9.0/pr-211441

Conversation

@cauemarcondes
Copy link
Contributor

Backport

This will backport the following commits from main to 9.0:

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/solutions/observability/plugins/apm/public/components/app/dependencies_inventory/dependencies_inventory_table/index.tsx
#	x-pack/solutions/observability/plugins/apm/server/lib/connections/get_connection_stats/get_stats.ts
#	x-pack/solutions/observability/plugins/apm/server/lib/connections/get_connection_stats/index.ts
#	x-pack/test/api_integration/deployment_agnostic/apis/observability/apm/service_overview/dependencies/index.spec.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 16:45
@botelastic botelastic bot added the Team:obs-ux-infra_services - DEPRECATED DEPRECATED - Use Team:obs-presentation. label Mar 10, 2025
@elasticmachine
Copy link
Contributor

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

@cauemarcondes
Copy link
Contributor Author

buildkite test this

@cauemarcondes cauemarcondes merged commit 48b6eb0 into elastic:9.0 Mar 11, 2025
9 checks passed
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

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.3MB 2.3MB +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
apm 68 69 +1

Total ESLint disabled count

id before after diff
apm 81 82 +1

History

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 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