-
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] Use terms enum to fetch environments on Service inventory page #144544
Comments
Pinging @elastic/apm-ui (Team:APM) |
@sqren shouldn't this be about removing the unnecessary call to get_environments? |
If that's the problem, yes. I haven't determined if that's the case though. |
@dgieselaar @sqren I have picked up this ticket to work on. Looking at the comments here, is the expectation different from what's in the description of the ticket ? Can you help me here detailing a bit more? |
@achyutjhunjhunwala The intention is to make sure that on the service inventory page we load environments using the terms enum api and only that. Dario suggests that maybe we are loading environments twice. It could be the case, in which case we should remove the duplicate call. If we only make one call and it doesn't use terms enum we should update the API. |
@sqren Perfect, that's all the information i needed |
@sqren I had a check at the network tab to see if we are calling the Regarding switching to Let me know if you have something in mind around a custom filter which we can implement on the code side. With current APIWith Terms_Enum APIEven with
|
Thanks for the thorough investigation @achyutjhunjhunwala ! We are not aiming for a 1:1 replacement so I think the terms enum query with I think in your case the result is a little exaggerated because of the nature of our data. I don't expect real users to see as big variances in |
Fixes #144544 ## Summary To get the list of Environments, aggregation was used on search api. With this change, list of environments will now be retrieved using the [Terms Enum API](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-terms-enum.html#search-terms-enum) --------- Co-authored-by: kibanamachine <[email protected]>
We should use the terms_enum api to retrieve the environments on the Service inventory page. Currently we retrieve them via a term agg request:
kibana/x-pack/plugins/apm/server/routes/environments/get_environments.ts
Lines 38 to 71 in 8881539
The text was updated successfully, but these errors were encountered: