Child Process Integration
Adds instrumentation for child processes and worker threads (default)
This integration only works in Node.js >=20
and requires SDK version 8.39.0
or higher.
Import name: Sentry.childProcessIntegration
This integration is enabled by default. If you'd like to modify your default integrations, read Modifying Default Integrations.
The childProcessIntegration
captures breadcrumbs and events for child_process
and worker_threads
errors and child_process
non-zero exit codes.
Copied
Sentry.init({
integrations: [Sentry.childProcessIntegration()],
});
Type: boolean
If set to true
, the integration will include the arguments used to start child processes.
Type: boolean
By default, this option is true
. If set to false
, the integration will not capture errors from worker threads.
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").