Skip to content

[APM] Breakdown Top dependencies API#211441

Merged
cauemarcondes merged 20 commits intoelastic:mainfrom
cauemarcondes:dependencies-api-breakdown
Mar 10, 2025
Merged

[APM] Breakdown Top dependencies API#211441
cauemarcondes merged 20 commits intoelastic:mainfrom
cauemarcondes:dependencies-api-breakdown

Conversation

@cauemarcondes
Copy link
Contributor

@cauemarcondes cauemarcondes commented Feb 17, 2025

closes #210552

Before:

  • Top dependencies API returned baseline and comparison timeseries data.
Screenshot 2025-02-14 at 14 27 28

After:

  • Removing timeseries and comparison data.
  • The API is ~2s faster than before.
  • Response size is also smaller after removing the timeseries data.
Screenshot 2025-02-14 at 14 26 34

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

@cauemarcondes cauemarcondes added release_note:enhancement backport:skip This PR does not require backporting v9.1.0 labels Feb 17, 2025
@cauemarcondes cauemarcondes requested a review from a team February 17, 2025 13:27
@botelastic botelastic bot added the Team:obs-ux-infra_services - DEPRECATED DEPRECATED - Use Team:obs-presentation. label Feb 17, 2025
@elasticmachine
Copy link
Contributor

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

@cauemarcondes cauemarcondes added backport:prev-minor and removed backport:skip This PR does not require backporting v9.1.0 labels Feb 17, 2025
cauemarcondes and others added 3 commits February 24, 2025 11:12
…lity/apm/service_overview/dependencies/index.spec.ts

Co-authored-by: Carlos Crespo <crespocarlos@users.noreply.github.com>
@miloszmarcinkowski
Copy link
Contributor

miloszmarcinkowski commented Feb 25, 2025

The comparison checkbox stopped refreshing statistics, the refresh button must be clicked to see any changes.

Screen.Recording.2025-02-25.at.16.55.35.mov

Copy link
Contributor

@miloszmarcinkowski miloszmarcinkowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A lot of work done here 👏

I found one issue described in the earlier comment and one typo.

@cauemarcondes
Copy link
Contributor Author

The comparison checkbox stopped refreshing statistics, the refresh button must be clicked to see any changes.

I missed to put the comparison and offset back on the deps... thanks for that.

cauemarcondes and others added 2 commits February 25, 2025 15:50
…hared/dependencies_table/index.tsx

Co-authored-by: Milosz Marcinkowski <38698566+miloszmarcinkowski@users.noreply.github.com>
@cauemarcondes cauemarcondes merged commit a6fd5b7 into elastic:main Mar 10, 2025
9 checks passed
@cauemarcondes cauemarcondes deleted the dependencies-api-breakdown branch March 10, 2025 16:24
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.16, 8.17, 8.18, 8.x, 9.0

https://github.com/elastic/kibana/actions/runs/13769695537

@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
8.16 Backport failed because of merge conflicts
8.17 Backport failed because of merge conflicts
8.18 Backport failed because of merge conflicts
8.x Backport failed because of merge conflicts
9.0 Backport failed because of merge conflicts

You might need to backport the following PRs to 9.0:
- [Perfomance] Add Inline documentation for TTFMP (#212393)

Manual backport

To create the backport manually run:

node scripts/backport --pr 211441

Questions ?

Please refer to the Backport tool documentation

cauemarcondes added a commit to cauemarcondes/kibana that referenced this pull request Mar 10, 2025
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 added a commit to cauemarcondes/kibana that referenced this pull request Mar 10, 2025
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 added a commit to cauemarcondes/kibana that referenced this pull request Mar 10, 2025
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
cauemarcondes added a commit to cauemarcondes/kibana that referenced this pull request Mar 10, 2025
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
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
9.0
8.x
8.18
8.17
8.16

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

cauemarcondes added a commit that referenced this pull request Mar 11, 2025
# Backport

This will backport the following commits from `main` to `8.17`:
- [[APM] Breakdown Top dependencies API
(#211441)](#211441)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Cauê
Marcondes","email":"55978943+cauemarcondes@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-03-10T16:24:37Z","message":"[APM]
Breakdown Top dependencies API (#211441)\n\ncloses
https://github.com/elastic/kibana/issues/210552\n\nBefore:\n- Top
dependencies API returned baseline and comparison timeseries
data.\n\n<img width=\"1208\" alt=\"Screenshot 2025-02-14 at 14 27
28\"\nsrc=\"https://github.com/user-attachments/assets/f7770395-0575-4950-9acd-8808de5794b7\"\n/>\n\n\nAfter:\n-
Removing timeseries and comparison data.\n- The API is ~2s faster than
before.\n- Response size is also smaller after removing the timeseries
data.\n\n<img width=\"1203\" alt=\"Screenshot 2025-02-14 at 14 26
34\"\nsrc=\"https://github.com/user-attachments/assets/5bd2ed09-1d2e-4ef1-8e55-6c3e9fba6348\"\n/>\n\nCreated
a new API:
`POST\n/internal/apm/dependencies/top_dependencies/statistics` to fetch
the\nstatistics for the visible
dependencies.\n\n---------\n\nCo-authored-by: Carlos Crespo
<crespocarlos@users.noreply.github.com>\nCo-authored-by: Milosz
Marcinkowski
<38698566+miloszmarcinkowski@users.noreply.github.com>","sha":"a6fd5b7e101b7e0d13b15220a247d4a29e5c0405","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement","backport:prev-minor","backport:prev-major","Team:obs-ux-infra_services","v9.1.0"],"title":"[APM]
Breakdown Top dependencies
API","number":211441,"url":"https://github.com/elastic/kibana/pull/211441","mergeCommit":{"message":"[APM]
Breakdown Top dependencies API (#211441)\n\ncloses
https://github.com/elastic/kibana/issues/210552\n\nBefore:\n- Top
dependencies API returned baseline and comparison timeseries
data.\n\n<img width=\"1208\" alt=\"Screenshot 2025-02-14 at 14 27
28\"\nsrc=\"https://github.com/user-attachments/assets/f7770395-0575-4950-9acd-8808de5794b7\"\n/>\n\n\nAfter:\n-
Removing timeseries and comparison data.\n- The API is ~2s faster than
before.\n- Response size is also smaller after removing the timeseries
data.\n\n<img width=\"1203\" alt=\"Screenshot 2025-02-14 at 14 26
34\"\nsrc=\"https://github.com/user-attachments/assets/5bd2ed09-1d2e-4ef1-8e55-6c3e9fba6348\"\n/>\n\nCreated
a new API:
`POST\n/internal/apm/dependencies/top_dependencies/statistics` to fetch
the\nstatistics for the visible
dependencies.\n\n---------\n\nCo-authored-by: Carlos Crespo
<crespocarlos@users.noreply.github.com>\nCo-authored-by: Milosz
Marcinkowski
<38698566+miloszmarcinkowski@users.noreply.github.com>","sha":"a6fd5b7e101b7e0d13b15220a247d4a29e5c0405"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/211441","number":211441,"mergeCommit":{"message":"[APM]
Breakdown Top dependencies API (#211441)\n\ncloses
https://github.com/elastic/kibana/issues/210552\n\nBefore:\n- Top
dependencies API returned baseline and comparison timeseries
data.\n\n<img width=\"1208\" alt=\"Screenshot 2025-02-14 at 14 27
28\"\nsrc=\"https://github.com/user-attachments/assets/f7770395-0575-4950-9acd-8808de5794b7\"\n/>\n\n\nAfter:\n-
Removing timeseries and comparison data.\n- The API is ~2s faster than
before.\n- Response size is also smaller after removing the timeseries
data.\n\n<img width=\"1203\" alt=\"Screenshot 2025-02-14 at 14 26
34\"\nsrc=\"https://github.com/user-attachments/assets/5bd2ed09-1d2e-4ef1-8e55-6c3e9fba6348\"\n/>\n\nCreated
a new API:
`POST\n/internal/apm/dependencies/top_dependencies/statistics` to fetch
the\nstatistics for the visible
dependencies.\n\n---------\n\nCo-authored-by: Carlos Crespo
<crespocarlos@users.noreply.github.com>\nCo-authored-by: Milosz
Marcinkowski
<38698566+miloszmarcinkowski@users.noreply.github.com>","sha":"a6fd5b7e101b7e0d13b15220a247d4a29e5c0405"}}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
cauemarcondes added a commit that referenced this pull request Mar 11, 2025
# Backport

This will backport the following commits from `main` to `8.18`:
- [[APM] Breakdown Top dependencies API
(#211441)](#211441)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Cauê
Marcondes","email":"55978943+cauemarcondes@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-03-10T16:24:37Z","message":"[APM]
Breakdown Top dependencies API (#211441)\n\ncloses
https://github.com/elastic/kibana/issues/210552\n\nBefore:\n- Top
dependencies API returned baseline and comparison timeseries
data.\n\n<img width=\"1208\" alt=\"Screenshot 2025-02-14 at 14 27
28\"\nsrc=\"https://github.com/user-attachments/assets/f7770395-0575-4950-9acd-8808de5794b7\"\n/>\n\n\nAfter:\n-
Removing timeseries and comparison data.\n- The API is ~2s faster than
before.\n- Response size is also smaller after removing the timeseries
data.\n\n<img width=\"1203\" alt=\"Screenshot 2025-02-14 at 14 26
34\"\nsrc=\"https://github.com/user-attachments/assets/5bd2ed09-1d2e-4ef1-8e55-6c3e9fba6348\"\n/>\n\nCreated
a new API:
`POST\n/internal/apm/dependencies/top_dependencies/statistics` to fetch
the\nstatistics for the visible
dependencies.\n\n---------\n\nCo-authored-by: Carlos Crespo
<crespocarlos@users.noreply.github.com>\nCo-authored-by: Milosz
Marcinkowski
<38698566+miloszmarcinkowski@users.noreply.github.com>","sha":"a6fd5b7e101b7e0d13b15220a247d4a29e5c0405","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement","backport:prev-minor","backport:prev-major","Team:obs-ux-infra_services","v9.1.0"],"title":"[APM]
Breakdown Top dependencies
API","number":211441,"url":"https://github.com/elastic/kibana/pull/211441","mergeCommit":{"message":"[APM]
Breakdown Top dependencies API (#211441)\n\ncloses
https://github.com/elastic/kibana/issues/210552\n\nBefore:\n- Top
dependencies API returned baseline and comparison timeseries
data.\n\n<img width=\"1208\" alt=\"Screenshot 2025-02-14 at 14 27
28\"\nsrc=\"https://github.com/user-attachments/assets/f7770395-0575-4950-9acd-8808de5794b7\"\n/>\n\n\nAfter:\n-
Removing timeseries and comparison data.\n- The API is ~2s faster than
before.\n- Response size is also smaller after removing the timeseries
data.\n\n<img width=\"1203\" alt=\"Screenshot 2025-02-14 at 14 26
34\"\nsrc=\"https://github.com/user-attachments/assets/5bd2ed09-1d2e-4ef1-8e55-6c3e9fba6348\"\n/>\n\nCreated
a new API:
`POST\n/internal/apm/dependencies/top_dependencies/statistics` to fetch
the\nstatistics for the visible
dependencies.\n\n---------\n\nCo-authored-by: Carlos Crespo
<crespocarlos@users.noreply.github.com>\nCo-authored-by: Milosz
Marcinkowski
<38698566+miloszmarcinkowski@users.noreply.github.com>","sha":"a6fd5b7e101b7e0d13b15220a247d4a29e5c0405"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/211441","number":211441,"mergeCommit":{"message":"[APM]
Breakdown Top dependencies API (#211441)\n\ncloses
https://github.com/elastic/kibana/issues/210552\n\nBefore:\n- Top
dependencies API returned baseline and comparison timeseries
data.\n\n<img width=\"1208\" alt=\"Screenshot 2025-02-14 at 14 27
28\"\nsrc=\"https://github.com/user-attachments/assets/f7770395-0575-4950-9acd-8808de5794b7\"\n/>\n\n\nAfter:\n-
Removing timeseries and comparison data.\n- The API is ~2s faster than
before.\n- Response size is also smaller after removing the timeseries
data.\n\n<img width=\"1203\" alt=\"Screenshot 2025-02-14 at 14 26
34\"\nsrc=\"https://github.com/user-attachments/assets/5bd2ed09-1d2e-4ef1-8e55-6c3e9fba6348\"\n/>\n\nCreated
a new API:
`POST\n/internal/apm/dependencies/top_dependencies/statistics` to fetch
the\nstatistics for the visible
dependencies.\n\n---------\n\nCo-authored-by: Carlos Crespo
<crespocarlos@users.noreply.github.com>\nCo-authored-by: Milosz
Marcinkowski
<38698566+miloszmarcinkowski@users.noreply.github.com>","sha":"a6fd5b7e101b7e0d13b15220a247d4a29e5c0405"}}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
cauemarcondes added a commit that referenced this pull request Mar 11, 2025
# Backport

This will backport the following commits from `main` to `8.x`:
- [[APM] Breakdown Top dependencies API
(#211441)](#211441)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Cauê
Marcondes","email":"55978943+cauemarcondes@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-03-10T16:24:37Z","message":"[APM]
Breakdown Top dependencies API (#211441)\n\ncloses
https://github.com/elastic/kibana/issues/210552\n\nBefore:\n- Top
dependencies API returned baseline and comparison timeseries
data.\n\n<img width=\"1208\" alt=\"Screenshot 2025-02-14 at 14 27
28\"\nsrc=\"https://github.com/user-attachments/assets/f7770395-0575-4950-9acd-8808de5794b7\"\n/>\n\n\nAfter:\n-
Removing timeseries and comparison data.\n- The API is ~2s faster than
before.\n- Response size is also smaller after removing the timeseries
data.\n\n<img width=\"1203\" alt=\"Screenshot 2025-02-14 at 14 26
34\"\nsrc=\"https://github.com/user-attachments/assets/5bd2ed09-1d2e-4ef1-8e55-6c3e9fba6348\"\n/>\n\nCreated
a new API:
`POST\n/internal/apm/dependencies/top_dependencies/statistics` to fetch
the\nstatistics for the visible
dependencies.\n\n---------\n\nCo-authored-by: Carlos Crespo
<crespocarlos@users.noreply.github.com>\nCo-authored-by: Milosz
Marcinkowski
<38698566+miloszmarcinkowski@users.noreply.github.com>","sha":"a6fd5b7e101b7e0d13b15220a247d4a29e5c0405","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement","backport:prev-minor","backport:prev-major","Team:obs-ux-infra_services","v9.1.0"],"title":"[APM]
Breakdown Top dependencies
API","number":211441,"url":"https://github.com/elastic/kibana/pull/211441","mergeCommit":{"message":"[APM]
Breakdown Top dependencies API (#211441)\n\ncloses
https://github.com/elastic/kibana/issues/210552\n\nBefore:\n- Top
dependencies API returned baseline and comparison timeseries
data.\n\n<img width=\"1208\" alt=\"Screenshot 2025-02-14 at 14 27
28\"\nsrc=\"https://github.com/user-attachments/assets/f7770395-0575-4950-9acd-8808de5794b7\"\n/>\n\n\nAfter:\n-
Removing timeseries and comparison data.\n- The API is ~2s faster than
before.\n- Response size is also smaller after removing the timeseries
data.\n\n<img width=\"1203\" alt=\"Screenshot 2025-02-14 at 14 26
34\"\nsrc=\"https://github.com/user-attachments/assets/5bd2ed09-1d2e-4ef1-8e55-6c3e9fba6348\"\n/>\n\nCreated
a new API:
`POST\n/internal/apm/dependencies/top_dependencies/statistics` to fetch
the\nstatistics for the visible
dependencies.\n\n---------\n\nCo-authored-by: Carlos Crespo
<crespocarlos@users.noreply.github.com>\nCo-authored-by: Milosz
Marcinkowski
<38698566+miloszmarcinkowski@users.noreply.github.com>","sha":"a6fd5b7e101b7e0d13b15220a247d4a29e5c0405"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/211441","number":211441,"mergeCommit":{"message":"[APM]
Breakdown Top dependencies API (#211441)\n\ncloses
https://github.com/elastic/kibana/issues/210552\n\nBefore:\n- Top
dependencies API returned baseline and comparison timeseries
data.\n\n<img width=\"1208\" alt=\"Screenshot 2025-02-14 at 14 27
28\"\nsrc=\"https://github.com/user-attachments/assets/f7770395-0575-4950-9acd-8808de5794b7\"\n/>\n\n\nAfter:\n-
Removing timeseries and comparison data.\n- The API is ~2s faster than
before.\n- Response size is also smaller after removing the timeseries
data.\n\n<img width=\"1203\" alt=\"Screenshot 2025-02-14 at 14 26
34\"\nsrc=\"https://github.com/user-attachments/assets/5bd2ed09-1d2e-4ef1-8e55-6c3e9fba6348\"\n/>\n\nCreated
a new API:
`POST\n/internal/apm/dependencies/top_dependencies/statistics` to fetch
the\nstatistics for the visible
dependencies.\n\n---------\n\nCo-authored-by: Carlos Crespo
<crespocarlos@users.noreply.github.com>\nCo-authored-by: Milosz
Marcinkowski
<38698566+miloszmarcinkowski@users.noreply.github.com>","sha":"a6fd5b7e101b7e0d13b15220a247d4a29e5c0405"}}]}]
BACKPORT-->
cauemarcondes added a commit that referenced this pull request Mar 11, 2025
# Backport

This will backport the following commits from `main` to `9.0`:
- [[APM] Breakdown Top dependencies API
(#211441)](#211441)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Cauê
Marcondes","email":"55978943+cauemarcondes@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-03-10T16:24:37Z","message":"[APM]
Breakdown Top dependencies API (#211441)\n\ncloses
https://github.com/elastic/kibana/issues/210552\n\nBefore:\n- Top
dependencies API returned baseline and comparison timeseries
data.\n\n<img width=\"1208\" alt=\"Screenshot 2025-02-14 at 14 27
28\"\nsrc=\"https://github.com/user-attachments/assets/f7770395-0575-4950-9acd-8808de5794b7\"\n/>\n\n\nAfter:\n-
Removing timeseries and comparison data.\n- The API is ~2s faster than
before.\n- Response size is also smaller after removing the timeseries
data.\n\n<img width=\"1203\" alt=\"Screenshot 2025-02-14 at 14 26
34\"\nsrc=\"https://github.com/user-attachments/assets/5bd2ed09-1d2e-4ef1-8e55-6c3e9fba6348\"\n/>\n\nCreated
a new API:
`POST\n/internal/apm/dependencies/top_dependencies/statistics` to fetch
the\nstatistics for the visible
dependencies.\n\n---------\n\nCo-authored-by: Carlos Crespo
<crespocarlos@users.noreply.github.com>\nCo-authored-by: Milosz
Marcinkowski
<38698566+miloszmarcinkowski@users.noreply.github.com>","sha":"a6fd5b7e101b7e0d13b15220a247d4a29e5c0405","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement","backport:prev-minor","backport:prev-major","Team:obs-ux-infra_services","v9.1.0"],"title":"[APM]
Breakdown Top dependencies
API","number":211441,"url":"https://github.com/elastic/kibana/pull/211441","mergeCommit":{"message":"[APM]
Breakdown Top dependencies API (#211441)\n\ncloses
https://github.com/elastic/kibana/issues/210552\n\nBefore:\n- Top
dependencies API returned baseline and comparison timeseries
data.\n\n<img width=\"1208\" alt=\"Screenshot 2025-02-14 at 14 27
28\"\nsrc=\"https://github.com/user-attachments/assets/f7770395-0575-4950-9acd-8808de5794b7\"\n/>\n\n\nAfter:\n-
Removing timeseries and comparison data.\n- The API is ~2s faster than
before.\n- Response size is also smaller after removing the timeseries
data.\n\n<img width=\"1203\" alt=\"Screenshot 2025-02-14 at 14 26
34\"\nsrc=\"https://github.com/user-attachments/assets/5bd2ed09-1d2e-4ef1-8e55-6c3e9fba6348\"\n/>\n\nCreated
a new API:
`POST\n/internal/apm/dependencies/top_dependencies/statistics` to fetch
the\nstatistics for the visible
dependencies.\n\n---------\n\nCo-authored-by: Carlos Crespo
<crespocarlos@users.noreply.github.com>\nCo-authored-by: Milosz
Marcinkowski
<38698566+miloszmarcinkowski@users.noreply.github.com>","sha":"a6fd5b7e101b7e0d13b15220a247d4a29e5c0405"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/211441","number":211441,"mergeCommit":{"message":"[APM]
Breakdown Top dependencies API (#211441)\n\ncloses
https://github.com/elastic/kibana/issues/210552\n\nBefore:\n- Top
dependencies API returned baseline and comparison timeseries
data.\n\n<img width=\"1208\" alt=\"Screenshot 2025-02-14 at 14 27
28\"\nsrc=\"https://github.com/user-attachments/assets/f7770395-0575-4950-9acd-8808de5794b7\"\n/>\n\n\nAfter:\n-
Removing timeseries and comparison data.\n- The API is ~2s faster than
before.\n- Response size is also smaller after removing the timeseries
data.\n\n<img width=\"1203\" alt=\"Screenshot 2025-02-14 at 14 26
34\"\nsrc=\"https://github.com/user-attachments/assets/5bd2ed09-1d2e-4ef1-8e55-6c3e9fba6348\"\n/>\n\nCreated
a new API:
`POST\n/internal/apm/dependencies/top_dependencies/statistics` to fetch
the\nstatistics for the visible
dependencies.\n\n---------\n\nCo-authored-by: Carlos Crespo
<crespocarlos@users.noreply.github.com>\nCo-authored-by: Milosz
Marcinkowski
<38698566+miloszmarcinkowski@users.noreply.github.com>","sha":"a6fd5b7e101b7e0d13b15220a247d4a29e5c0405"}}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
cauemarcondes added a commit that referenced this pull request Mar 11, 2025
# Backport

This will backport the following commits from `main` to `8.16`:
- [[APM] Breakdown Top dependencies API
(#211441)](#211441)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Cauê
Marcondes","email":"55978943+cauemarcondes@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-03-10T16:24:37Z","message":"[APM]
Breakdown Top dependencies API (#211441)\n\ncloses
https://github.com/elastic/kibana/issues/210552\n\nBefore:\n- Top
dependencies API returned baseline and comparison timeseries
data.\n\n<img width=\"1208\" alt=\"Screenshot 2025-02-14 at 14 27
28\"\nsrc=\"https://github.com/user-attachments/assets/f7770395-0575-4950-9acd-8808de5794b7\"\n/>\n\n\nAfter:\n-
Removing timeseries and comparison data.\n- The API is ~2s faster than
before.\n- Response size is also smaller after removing the timeseries
data.\n\n<img width=\"1203\" alt=\"Screenshot 2025-02-14 at 14 26
34\"\nsrc=\"https://github.com/user-attachments/assets/5bd2ed09-1d2e-4ef1-8e55-6c3e9fba6348\"\n/>\n\nCreated
a new API:
`POST\n/internal/apm/dependencies/top_dependencies/statistics` to fetch
the\nstatistics for the visible
dependencies.\n\n---------\n\nCo-authored-by: Carlos Crespo
<crespocarlos@users.noreply.github.com>\nCo-authored-by: Milosz
Marcinkowski
<38698566+miloszmarcinkowski@users.noreply.github.com>","sha":"a6fd5b7e101b7e0d13b15220a247d4a29e5c0405","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement","backport:prev-minor","backport:prev-major","Team:obs-ux-infra_services","v9.1.0"],"title":"[APM]
Breakdown Top dependencies
API","number":211441,"url":"https://github.com/elastic/kibana/pull/211441","mergeCommit":{"message":"[APM]
Breakdown Top dependencies API (#211441)\n\ncloses
https://github.com/elastic/kibana/issues/210552\n\nBefore:\n- Top
dependencies API returned baseline and comparison timeseries
data.\n\n<img width=\"1208\" alt=\"Screenshot 2025-02-14 at 14 27
28\"\nsrc=\"https://github.com/user-attachments/assets/f7770395-0575-4950-9acd-8808de5794b7\"\n/>\n\n\nAfter:\n-
Removing timeseries and comparison data.\n- The API is ~2s faster than
before.\n- Response size is also smaller after removing the timeseries
data.\n\n<img width=\"1203\" alt=\"Screenshot 2025-02-14 at 14 26
34\"\nsrc=\"https://github.com/user-attachments/assets/5bd2ed09-1d2e-4ef1-8e55-6c3e9fba6348\"\n/>\n\nCreated
a new API:
`POST\n/internal/apm/dependencies/top_dependencies/statistics` to fetch
the\nstatistics for the visible
dependencies.\n\n---------\n\nCo-authored-by: Carlos Crespo
<crespocarlos@users.noreply.github.com>\nCo-authored-by: Milosz
Marcinkowski
<38698566+miloszmarcinkowski@users.noreply.github.com>","sha":"a6fd5b7e101b7e0d13b15220a247d4a29e5c0405"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/211441","number":211441,"mergeCommit":{"message":"[APM]
Breakdown Top dependencies API (#211441)\n\ncloses
https://github.com/elastic/kibana/issues/210552\n\nBefore:\n- Top
dependencies API returned baseline and comparison timeseries
data.\n\n<img width=\"1208\" alt=\"Screenshot 2025-02-14 at 14 27
28\"\nsrc=\"https://github.com/user-attachments/assets/f7770395-0575-4950-9acd-8808de5794b7\"\n/>\n\n\nAfter:\n-
Removing timeseries and comparison data.\n- The API is ~2s faster than
before.\n- Response size is also smaller after removing the timeseries
data.\n\n<img width=\"1203\" alt=\"Screenshot 2025-02-14 at 14 26
34\"\nsrc=\"https://github.com/user-attachments/assets/5bd2ed09-1d2e-4ef1-8e55-6c3e9fba6348\"\n/>\n\nCreated
a new API:
`POST\n/internal/apm/dependencies/top_dependencies/statistics` to fetch
the\nstatistics for the visible
dependencies.\n\n---------\n\nCo-authored-by: Carlos Crespo
<crespocarlos@users.noreply.github.com>\nCo-authored-by: Milosz
Marcinkowski
<38698566+miloszmarcinkowski@users.noreply.github.com>","sha":"a6fd5b7e101b7e0d13b15220a247d4a29e5c0405"}}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Mar 22, 2025
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[APM] Breakdown Top dependencies API

5 participants