Skip to content
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] Switching environments on the Service Error tab causes flaky rendering/request behaviour for detailed_statistics #216144

Open
Bluefinger opened this issue Mar 27, 2025 · 4 comments
Labels
apm bug Fixes for quality problems that affect the customer experience Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team

Comments

@Bluefinger
Copy link
Contributor

Kibana version:
8.17.0

Elasticsearch version:
8.17.0

Server OS version:
N/A

Describe the bug:

On services assigned to more than one environment, switching between environments on the Errors tab of the APM Services page for the service in question causes the detailed_statistics request to fire multiple times or not fire at all, occasionally resulting in the page not rendering the details correctly.

Steps to reproduce:

  1. Go to APM Services
  2. Select a Service with more than one environment + has recorded errors
  3. Go to the Errors tab
  4. Open browser dev tools and switch to a different environment
  5. detailed_statistics request should fire twice, the first aborted with the second succeeding, or not firing at all

Expected behavior:
detailed_statistics should fire only once, like when you first load the Error tab on the default environment.

Screenshots (if relevant):

Image

Any additional context:
This bug is a bit of a heisenbug with regards to whether the page renders correctly or not, but the multiple requests are fairly easy to reproduce versus some of the other potential failures.

@Bluefinger Bluefinger added apm bug Fixes for quality problems that affect the customer experience Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team labels Mar 27, 2025
@elasticmachine
Copy link
Contributor

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

@cauemarcondes
Copy link
Contributor

5. ..., or not firing at all

Isn't it because the query is cached?

@cauemarcondes
Copy link
Contributor

The aborted request problem happens on many other tabs too, whoever picks this issue could fix it on the other places as well.

@Bluefinger
Copy link
Contributor Author

5. ..., or not firing at all

Isn't it because the query is cached?

Maybe the request is getting cached incorrectly and remains in an invalid state. I wasn't able to reproduce this one, so this might require a bit more investigation to see if we get invalid cached states.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apm bug Fixes for quality problems that affect the customer experience Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team
Projects
None yet
Development

No branches or pull requests

3 participants