Skip to content

Commit 3424cbe

Browse files
committed
quick change
1 parent 149cf6f commit 3424cbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/profiling-node/src/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { Context, Envelope, Event, StackFrame, StackParser } from '@sentry/
33
import { env, versions } from 'process';
44
import { isMainThread, threadId } from 'worker_threads';
55

6-
import * as Sentry from '@sentry/node';
6+
import { getCurrentHub } from '@sentry/node';
77
import { GLOBAL_OBJ, forEachEnvelopeItem, logger } from '@sentry/utils';
88

99
import { DEBUG_BUILD } from './debug-build';
@@ -318,7 +318,7 @@ export function applyDebugMetadata(resource_paths: ReadonlyArray<string>): Debug
318318
}
319319

320320
// eslint-disable-next-line deprecation/deprecation
321-
const hub = Sentry.getCurrentHub();
321+
const hub = getCurrentHub();
322322
// eslint-disable-next-line deprecation/deprecation
323323
const client = hub.getClient();
324324
const options = client && client.getOptions();

0 commit comments

Comments
 (0)