Skip to content

Commit 59ef86a

Browse files
committed
Fix Sentry child proc breadcrumbs
1 parent 811efb2 commit 59ef86a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/error-tracking.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import * as path from 'path';
22
import { randomUUID } from 'crypto';
3-
import * as child_process from 'child_process';
43
import * as Sentry from '@sentry/node';
54
import { ErrorLike } from '@httptoolkit/util';
65

@@ -91,6 +90,7 @@ export function initErrorTracking() {
9190
Sentry.setUser({ id: randomId, username: `anon-${randomId}` });
9291

9392
// Include breadcrumbs for subprocess spawning, to trace interceptor startup details:
93+
const child_process = require('child_process');
9494
const rawSpawn = child_process.spawn;
9595
(child_process as any).spawn = function (command: any, args?: any, options?: { [key: string]: string }) {
9696
const sanitizedOptions = { ...options,

0 commit comments

Comments
 (0)