Skip to content

Improve Node ANR (blocked event loop detection) #16376

Closed as not planned
Closed as not planned
@timfish

Description

@timfish

Problem Statement

Currently Node ARN has a couple of issues:

  • Uses node:inspector to capture stack traces
  • Starts a watchdog thread for each worker thread where the SDK is started

Solution Brainstorm

I've managed to capture stack traces across worker threads via a native module:
https://github.com/timfish/sentry-node-cross-thread-stack-trace

This native module can also be used for signaling between threads so that we can use a single watchdog thread.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions