elastic / elastic/apm-agent-nodejs

investigate switching to `uncaughtExceptionMonitor` event

Open
#2,367 1 comment 0 reactions 0 assignees View on GitHub
agent-nodejs
Dominant language
JavaScript
Stars
594
Forks
244
Avg merge
1d 8h
Merged PRs (30d)
16

Description

Node v12.17.0 added the [`uncaughtExceptionMonitor` process event](https://nodejs.org/docs/latest-v12.x/api/all.html#process_event_uncaughtexceptionmonitor), separate from `uncaughtException`, I'm *guessing* to provide a mechanism for doing something with these without otherwise changing node's default `uncaughtException` handler. It would be good to use this when possible. Perhaps we guard on the current node version, or we wait until v12.17 is a base supported version.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.