Child Process Integration
为子进程和工作线程添加仪器化。(默认启用)
此集成仅在 Node.js 中工作,并且需要 SDK 版本 8.39.0
或更高版本。
Import name: Sentry.childProcessIntegration
此集成默认启用。如果您想修改默认集成,请阅读 修改默认集成。
childProcessIntegration
为 child_process
和 worker_threads
错误以及 child_process
非零退出代码添加面包屑。
Copied
Sentry.init({
integrations: [Sentry.childProcessIntegration()],
});
Type: boolean
如果设置为 true
,集成将包含用于启动子进程的参数。