Skip to content

Commit 94f8615

Browse files
author
Luca Forstner
authored
Deprecate processThreadBreadcrumbIntegration (#11850)
1 parent ac65b8d commit 94f8615

15 files changed

+73
-7
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

platform-includes/configuration/integrations/javascript.astro.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@ Depending on whether an integration enhances the functionality of a particular r
6262
| [`redisIntegration`](./redis) || || |
6363
| [`requestDataIntegration`](./requestdata) || || |
6464
| [`tediousIntegration`](./tedious) || || |
65-
| [`anrIntegration`](./anr) | | | | |
65+
| [`childProcessIntegration`](./childProcess) | | | | |
6666
| [`dataloaderIntegration`](./dataloader) || || |
67+
| [`anrIntegration`](./anr) | || | |
6768
| [`extraErrorDataIntegration`](./extraerrordata) | | | ||
6869
| [`fsIntegration`](./fs) | | || |
6970
| [`knexIntegration`](./knex) | | || |

platform-includes/configuration/integrations/javascript.aws-lambda.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
| [`nativeNodeFetchIntegration`](./nodefetch) || |||
1717
| [`onUncaughtExceptionIntegration`](./onuncaughtexception) ||| | |
1818
| [`onUnhandledRejectionIntegration`](./unhandledrejection) ||| | |
19+
| [`childProcessIntegration`](./childProcess) || | ||
1920
| [`amqplibIntegration`](./amqplib) | | || |
2021
| [`anrIntegration`](./anr) | || | |
2122
| [`captureConsoleIntegration`](./captureconsole) | | | ||

platform-includes/configuration/integrations/javascript.connect.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
| [`redisIntegration`](./redis) || || |
2929
| [`requestDataIntegration`](./requestdata) || || |
3030
| [`tediousIntegration`](./tedious) || || |
31+
| [`childProcessIntegration`](./childProcess) || | ||
3132
| [`anrIntegration`](./anr) | || | |
3233
| [`captureConsoleIntegration`](./captureconsole) | | | ||
3334
| [`debugIntegration`](./debug) | | | | |

platform-includes/configuration/integrations/javascript.fastify.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
| [`redisIntegration`](./redis) || || |
2929
| [`requestDataIntegration`](./requestdata) || || |
3030
| [`tediousIntegration`](./tedious) || || |
31+
| [`childProcessIntegration`](./childProcess) || | ||
3132
| [`anrIntegration`](./anr) | || | |
3233
| [`captureConsoleIntegration`](./captureconsole) | | | ||
3334
| [`debugIntegration`](./debug) | | | | |

platform-includes/configuration/integrations/javascript.gcp-functions.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
| [`nativeNodeFetchIntegration`](./nodefetch) || |||
1717
| [`onUncaughtExceptionIntegration`](./onuncaughtexception) ||| | |
1818
| [`onUnhandledRejectionIntegration`](./unhandledrejection) ||| | |
19+
| [`childProcessIntegration`](./childProcess) || | ||
1920
| [`amqplibIntegration`](./amqplib) | | || |
2021
| [`anrIntegration`](./anr) | || | |
2122
| [`captureConsoleIntegration`](./captureconsole) | | | ||

platform-includes/configuration/integrations/javascript.hapi.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
| [`redisIntegration`](./redis) || || |
2929
| [`requestDataIntegration`](./requestdata) || || |
3030
| [`tediousIntegration`](./tedious) || || |
31+
| [`childProcessIntegration`](./childProcess) || | ||
3132
| [`anrIntegration`](./anr) | || | |
3233
| [`captureConsoleIntegration`](./captureconsole) | | | ||
3334
| [`debugIntegration`](./debug) | | | | |

platform-includes/configuration/integrations/javascript.nestjs.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
| [`redisIntegration`](./redis) || || |
2929
| [`requestDataIntegration`](./requestdata) || || |
3030
| [`tediousIntegration`](./tedious) || || |
31+
| [`childProcessIntegration`](./childProcess) || | ||
3132
| [`anrIntegration`](./anr) | || | |
3233
| [`captureConsoleIntegration`](./captureconsole) | | | ||
3334
| [`debugIntegration`](./debug) | | | | |

platform-includes/configuration/integrations/javascript.nextjs.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@ Depending on whether an integration enhances the functionality of a particular r
6969
| [`redisIntegration`](./redis) || || |
7070
| [`requestDataIntegration`](./requestdata) || || |
7171
| [`tediousIntegration`](./tedious) || || |
72-
| [`anrIntegration`](./anr) | || | |
7372
| [`dataloaderIntegration`](./dataloader) || || |
73+
| [`childProcessIntegration`](./childProcess) || | ||
74+
| [`anrIntegration`](./anr) | || | |
7475
| [`extraErrorDataIntegration`](./extraerrordata) | | | ||
7576
| [`fsIntegration`](./fs) | | || |
7677
| [`knexIntegration`](./knex) | | || |

platform-includes/configuration/integrations/javascript.node.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
| [`redisIntegration`](./redis) || || |
2828
| [`requestDataIntegration`](./requestdata) || || |
2929
| [`tediousIntegration`](./tedious) || || |
30+
| [`childProcessIntegration`](./childProcess) || | ||
3031
| [`anrIntegration`](./anr) | || | |
3132
| [`captureConsoleIntegration`](./captureconsole) | | | ||
3233
| [`debugIntegration`](./debug) | | | | |

platform-includes/configuration/integrations/javascript.nuxt.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@ Depending on whether an integration enhances the functionality of a particular r
6262
| [`redisIntegration`](./redis) || || |
6363
| [`requestDataIntegration`](./requestdata) || || |
6464
| [`tediousIntegration`](./tedious) || || |
65-
| [`anrIntegration`](./anr) | || | |
6665
| [`dataloaderIntegration`](./dataloader) || || |
66+
| [`childProcessIntegration`](./childProcess) || | ||
67+
| [`anrIntegration`](./anr) | || | |
6768
| [`extraErrorDataIntegration`](./extraerrordata) | | | ||
6869
| [`fsIntegration`](./fs) | | || |
6970
| [`knexIntegration`](./knex) | | || |

platform-includes/configuration/integrations/javascript.remix.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@ Depending on whether an integration enhances the functionality of a particular r
6262
| [`redisIntegration`](./redis) || || |
6363
| [`requestDataIntegration`](./requestdata) || || |
6464
| [`tediousIntegration`](./tedious) || || |
65-
| [`anrIntegration`](./anr) | || | |
6665
| [`dataloaderIntegration`](./dataloader) || || |
66+
| [`childProcessIntegration`](./childProcess) || | ||
67+
| [`anrIntegration`](./anr) | || | |
6768
| [`extraErrorDataIntegration`](./extraerrordata) | | | ||
6869
| [`fsIntegration`](./fs) | | || |
6970
| [`knexIntegration`](./knex) | | || |

platform-includes/configuration/integrations/javascript.solidstart.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@ Depending on whether an integration enhances the functionality of a particular r
6262
| [`redisIntegration`](./redis) || || |
6363
| [`requestDataIntegration`](./requestdata) || || |
6464
| [`tediousIntegration`](./tedious) || || |
65-
| [`anrIntegration`](./anr) | || | |
6665
| [`dataloaderIntegration`](./dataloader) || || |
66+
| [`childProcessIntegration`](./childProcess) || | ||
67+
| [`anrIntegration`](./anr) | || | |
6768
| [`extraErrorDataIntegration`](./extraerrordata) | | | ||
6869
| [`fsIntegration`](./fs) | | || |
6970
| [`knexIntegration`](./knex) | | || |

platform-includes/configuration/integrations/javascript.sveltekit.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@ Depending on whether an integration enhances the functionality of a particular r
6262
| [`redisIntegration`](./redis) || || |
6363
| [`requestDataIntegration`](./requestdata) || || |
6464
| [`tediousIntegration`](./tedious) || || |
65-
| [`anrIntegration`](./anr) | | | | |
65+
| [`childProcessIntegration`](./childProcess) | | | | |
6666
| [`dataloaderIntegration`](./dataloader) || || |
67+
| [`anrIntegration`](./anr) | || | |
6768
| [`extraErrorDataIntegration`](./extraerrordata) | | | ||
6869
| [`fsIntegration`](./fs) | | || |
6970
| [`knexIntegration`](./knex) | | || |

0 commit comments

Comments
 (0)