MCPcopy Create free account
hub / github.com/getsentry/sentry-javascript / setup

Function setup

packages/node-core/src/integrations/childProcess.ts:30–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28 return {
29 name: INTEGRATION_NAME,
30 setup() {
31 diagnosticsChannel.channel('child_process').subscribe((event: unknown) => {
32 if (event && typeof event === 'object' && 'process' in event) {
33 captureChildProcessEvents(event.process as ChildProcess, options);
34 }
35 });
36
37 diagnosticsChannel.channel('worker_threads').subscribe((event: unknown) => {
38 if (event && typeof event === 'object' && 'worker' in event) {
39 captureWorkerThreadEvents(event.worker as Worker, options);
40 }
41 });
42 },
43 };
44});
45

Callers

nothing calls this directly

Calls 3

subscribeMethod · 0.65

Tested by

no test coverage detected