Skip to content

Commit 847c05a

Browse files
authored
fix(profiling-node): Use correct getGlobalScope import (#12564)
We need to import from `@sentry/core` instead of a relative import otherwise the types break.
1 parent fc165e5 commit 847c05a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

packages/profiling-node/src/integration.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1-
import { defineIntegration, getCurrentScope, getIsolationScope, getRootSpan, spanToJSON } from '@sentry/core';
1+
import {
2+
defineIntegration,
3+
getCurrentScope,
4+
getGlobalScope,
5+
getIsolationScope,
6+
getRootSpan,
7+
spanToJSON,
8+
} from '@sentry/core';
29
import type { NodeClient } from '@sentry/node';
310
import type { Event, Integration, IntegrationFn, Profile, ProfileChunk, Span } from '@sentry/types';
411

512
import { LRUMap, logger, uuid4 } from '@sentry/utils';
613

7-
import { getGlobalScope } from '../../core/src/currentScopes';
814
import { CpuProfilerBindings } from './cpu_profiler';
915
import { DEBUG_BUILD } from './debug-build';
1016
import { NODE_MAJOR, NODE_VERSION } from './nodeVersion';

0 commit comments

Comments
 (0)