We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 811efb2 commit 59ef86aCopy full SHA for 59ef86a
src/error-tracking.ts
@@ -1,6 +1,5 @@
1
import * as path from 'path';
2
import { randomUUID } from 'crypto';
3
-import * as child_process from 'child_process';
4
import * as Sentry from '@sentry/node';
5
import { ErrorLike } from '@httptoolkit/util';
6
@@ -91,6 +90,7 @@ export function initErrorTracking() {
91
90
Sentry.setUser({ id: randomId, username: `anon-${randomId}` });
92
93
// Include breadcrumbs for subprocess spawning, to trace interceptor startup details:
+ const child_process = require('child_process');
94
const rawSpawn = child_process.spawn;
95
(child_process as any).spawn = function (command: any, args?: any, options?: { [key: string]: string }) {
96
const sanitizedOptions = { ...options,
0 commit comments