Skip to content

Commit e5a667c

Browse files
author
Luca Forstner
committed
Deprecate processThreadBreadcrumbIntegration
1 parent fd8a381 commit e5a667c

File tree

2 files changed

+54
-1
lines changed

2 files changed

+54
-1
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
title: Child Process Integration
3+
description: "Adds instrumentation for child processes and worker threads (default)"
4+
supported:
5+
- javascript.node
6+
- javascript.aws-lambda
7+
- javascript.azure-functions
8+
- javascript.connect
9+
- javascript.express
10+
- javascript.fastify
11+
- javascript.gcp-functions
12+
- javascript.hapi
13+
- javascript.koa
14+
- javascript.nestjs
15+
- javascript.electron
16+
- javascript.nextjs
17+
- javascript.nuxt
18+
- javascript.sveltekit
19+
- javascript.remix
20+
- javascript.astro
21+
---
22+
23+
<Alert level="info">
24+
25+
This integration only works in Node.js and requires SDK version `8.39.0` or higher.
26+
27+
</Alert>
28+
29+
_Import name: `Sentry.childProcessIntegration`_
30+
31+
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>.
32+
33+
The `childProcessIntegration` adds breadcrumbs for `child_process` and `worker_threads` errors and `child_process` non-zero exit codes.
34+
35+
```JavaScript
36+
Sentry.init({
37+
integrations: [Sentry.childProcessIntegration()],
38+
});
39+
```
40+
41+
## Options
42+
43+
### `includeChildProcessArgs`
44+
45+
_Type: `boolean`_
46+
47+
If set to `true`, the integration will include the arguments used to start child processes.

docs/platforms/javascript/common/configuration/integrations/processThreadsBreadcrumb.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ supported:
2020
- javascript.astro
2121
---
2222

23+
<Alert>
24+
25+
This integration is deprecated and has been replaced with the <PlatformLink to="/configuration/integrations/childProcess/">`Child Process Integration`</PlatformLink>
26+
27+
</Alert>
28+
2329
<Alert level="info">
2430

2531
This integration only works in Node.js and requires SDK version `8.36.0` or higher.
@@ -28,7 +34,7 @@ This integration only works in Node.js and requires SDK version `8.36.0` or high
2834

2935
_Import name: `Sentry.processThreadBreadcrumbIntegration`_
3036

31-
This integration is enabled by default. If you'd like to modify your default integrations, read [this](./../#modifying-default-integrations).
37+
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>.
3238

3339
The `processThreadBreadcrumbIntegration` adds breadcrumbs for `child_process` and `worker_threads` errors and `child_process` non-zero exit codes.
3440

0 commit comments

Comments
 (0)