From 51d4edf91e20bfc359c6941616c316a40d01b0f9 Mon Sep 17 00:00:00 2001 From: Tim Fish Date: Wed, 6 Nov 2024 20:03:31 +0100 Subject: [PATCH 1/2] feat(node): Document `processThreadBreadcrumbIntegration` --- .../integrations/processThreadsBreadcrumb.mdx | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 docs/platforms/javascript/common/configuration/integrations/processThreadsBreadcrumb.mdx diff --git a/docs/platforms/javascript/common/configuration/integrations/processThreadsBreadcrumb.mdx b/docs/platforms/javascript/common/configuration/integrations/processThreadsBreadcrumb.mdx new file mode 100644 index 0000000000000..7fa8bf29afabf --- /dev/null +++ b/docs/platforms/javascript/common/configuration/integrations/processThreadsBreadcrumb.mdx @@ -0,0 +1,45 @@ +--- +title: Process and Threads Breadcrumbs Integration +description: "Adds breadcrumbs for child processes and worker threads (default)" +supported: + - javascript.node + - javascript.aws-lambda + - javascript.azure-functions + - javascript.connect + - javascript.express + - javascript.fastify + - javascript.gcp-functions + - javascript.hapi + - javascript.koa + - javascript.nestjs + - javascript.electron + - javascript.nextjs + - javascript.nuxt + - javascript.sveltekit + - javascript.remix + - javascript.astro +--- + + + +This integration only works in Node.js and requires SDK version `8.36.0` or +higher. + + + +_Import name: `Sentry.processThreadBreadcrumbIntegration`_ + +This integration is enabled by default. If you'd like to modify your default +integrations, read [this](./../#modifying-default-integrations). + +The `processThreadBreadcrumbIntegration` adds breadcrumbs for `child_process` +and `worker_threads` errors and `child_process` non-zero exit codes. + +## Options + +### `includeChildProcessArgs` + +_Type: `boolean`_ + +If set to true, the integration will include the arguments used to start child +processes. From 55d212f3823795a3c065868941f841f9a8747eae Mon Sep 17 00:00:00 2001 From: Tim Fish Date: Thu, 7 Nov 2024 03:11:36 +0100 Subject: [PATCH 2/2] PR review Co-authored-by: Alex Krawiec --- .../configuration/integrations/processThreadsBreadcrumb.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/platforms/javascript/common/configuration/integrations/processThreadsBreadcrumb.mdx b/docs/platforms/javascript/common/configuration/integrations/processThreadsBreadcrumb.mdx index 7fa8bf29afabf..aec90e3d4f228 100644 --- a/docs/platforms/javascript/common/configuration/integrations/processThreadsBreadcrumb.mdx +++ b/docs/platforms/javascript/common/configuration/integrations/processThreadsBreadcrumb.mdx @@ -41,5 +41,5 @@ and `worker_threads` errors and `child_process` non-zero exit codes. _Type: `boolean`_ -If set to true, the integration will include the arguments used to start child +If set to `true`, the integration will include the arguments used to start child processes.