-
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
Attach a long event loop delay "span" to an APM transaction #128647
Comments
Pinging @elastic/kibana-core (Team:Core) |
Status update
|
The article mentioned in the description pinpoints 2 main scenarios that can cause event loop delays:
Perhaps rather than trying to detect the blocks with a timer-based strategy, we could try to calculate them per request.
UPDATE: Unfortunately, this does not guarantee that a "blocked" request is the culprit. |
@gsoldevila is there anything we can do on this issue, or should we just close it as won't do? |
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.The text was updated successfully, but these errors were encountered: