Skip to content

feat: split childProcess integration into childProcess and worker integrations - #22886

Open
atharv-sys32 wants to merge 1 commit into
getsentry:developfrom
atharv-sys32:feat/split-worker-integration
Open

feat: split childProcess integration into childProcess and worker integrations#22886
atharv-sys32 wants to merge 1 commit into
getsentry:developfrom
atharv-sys32:feat/split-worker-integration

Conversation

@atharv-sys32

Copy link
Copy Markdown

Fixes #18698

…egrations

The childProcess integration handled both child process and worker
thread events under one integration. This splits it into two:
- childProcessIntegration: handles child process events only
- workerIntegration: handles worker thread events only (new)

The old childProcessIntegration's captureWorkerErrors option is
deprecated. Users should use workerIntegration() instead.

Fixes getsentry#18698

Signed-off-by: Atharv Pandey <atharvpandey245@gmail.com>
@atharv-sys32
atharv-sys32 requested review from a team as code owners July 30, 2026 22:30
@atharv-sys32
atharv-sys32 requested review from isaacs and mydea and removed request for a team July 30, 2026 22:30

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit bab9d05. Configure here.

.on('error', error => {
if (options.captureWorkerErrors !== false) {
captureException(error, {
mechanism: { type: 'auto.worker_thread', handled: false, data: { threadId: threadId !== undefined ? String(threadId) : undefined } },

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale worker mechanism in tests

High Severity

The worker error mechanism type changed to auto.worker_thread, but OnUncaughtException integration tests still expect auto.child_process.worker_thread. Those suites use default integrations, so they will assert the old type and fail.

Fix in Cursor Fix in Web

Triggered by project rule: PR Review Guidelines for Cursor Bot

Reviewed by Cursor Bugbot for commit bab9d05. Configure here.

export * as logger from './logs/exports';

export { childProcessIntegration } from './integrations/childProcess';
export { workerIntegration } from './integrations/workerIntegration';

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incomplete dependent package exports

Medium Severity

workerIntegration is exported from @sentry/node, AWS, and Google Cloud, but not from @sentry/astro, which still manually re-exports childProcessIntegration. The exports consistency check also still ignores only childProcessIntegration for Bun, so Astro and Bun will fail that E2E assertion.

Fix in Cursor Fix in Web

Triggered by project rule: PR Review Guidelines for Cursor Bot

Reviewed by Cursor Bugbot for commit bab9d05. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Split up childProcess integration into childProcess and worker integration

1 participant