Skip to content

feat(v9/node): childProcessIntegration additional features #12430

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

Merged
merged 1 commit into from
Feb 11, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ supported:

<Alert>

This integration only works in Node.js and requires SDK version `8.39.0` or higher.
This integration only works in Node.js `>=20` and requires SDK version `8.39.0` or higher.

</Alert>

_Import name: `Sentry.childProcessIntegration`_

This integration is enabled by default. If you'd like to modify your default integrations, read <PlatformLink to="/configuration/integrations/#modifying-default-integrations">Modifying Default Integrations</PlatformLink>.

The `childProcessIntegration` adds breadcrumbs for `child_process` and `worker_threads` errors and `child_process` non-zero exit codes.
The `childProcessIntegration` captures breadcrumbs and events for `child_process` and `worker_threads` errors and `child_process` non-zero exit codes.

```JavaScript
Sentry.init({
Expand All @@ -46,3 +46,11 @@ Sentry.init({
_Type: `boolean`_

If set to `true`, the integration will include the arguments used to start child processes.

### `captureWorkerErrors`

_Type: `boolean`_

By default, this option is `true`. If set to `false`, the integration will not capture errors from worker threads.


Loading