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

Attach a long event loop delay span to an APM transaction #128646

Closed
mshustov opened this issue Mar 28, 2022 · 2 comments
Closed

Attach a long event loop delay span to an APM transaction #128646

mshustov opened this issue Mar 28, 2022 · 2 comments
Labels
Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc triage_needed

Comments

@mshustov
Copy link
Contributor

Since v7.14 PR, Kibana reports a warning if the mean value of event loop delay exceeds 350ms. It helps users spot a performance problem but not investigate it since the runtime context is absent.

To overcome the problem, we can borrow a few ideas from [this article] (https://www.ashbyhq.com/blog/engineering/detecting-event-loop-blockers).
TLDR: Server can capture the runtime context of the expensive tasks by implementing a custom async hook tracking the duration of a task and attaching it to an APM transaction. It allows Cloud customers quickly identify what APM transaction triggers CPU-bound tasks on the Kibana server.

@mshustov mshustov added Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc triage_needed labels Mar 28, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-core (Team:Core)

@lukeelmers
Copy link
Member

Looks like somehow this issue got created twice? #128647

I'll go ahead and close this one as a duplicate

@lukeelmers lukeelmers closed this as not planned Won't fix, can't repro, duplicate, stale Mar 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc triage_needed
Projects
None yet
Development

No branches or pull requests

3 participants