elastic / elastic/apm-agent-nodejs
investigate switching to `uncaughtExceptionMonitor` event
Open
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
Assessment
This issue has not been assessed yet.