Skip to content

Commit

Permalink
fix(profiling-node): Use correct getGlobalScope import (#12564)
Browse files Browse the repository at this point in the history
We need to import from `@sentry/core` instead of a relative import
otherwise the types break.
  • Loading branch information
AbhiPrasad authored Jun 19, 2024
1 parent fc165e5 commit 847c05a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/profiling-node/src/integration.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
import { defineIntegration, getCurrentScope, getIsolationScope, getRootSpan, spanToJSON } from '@sentry/core';
import {
defineIntegration,
getCurrentScope,
getGlobalScope,
getIsolationScope,
getRootSpan,
spanToJSON,
} from '@sentry/core';
import type { NodeClient } from '@sentry/node';
import type { Event, Integration, IntegrationFn, Profile, ProfileChunk, Span } from '@sentry/types';

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

import { getGlobalScope } from '../../core/src/currentScopes';
import { CpuProfilerBindings } from './cpu_profiler';
import { DEBUG_BUILD } from './debug-build';
import { NODE_MAJOR, NODE_VERSION } from './nodeVersion';
Expand Down

0 comments on commit 847c05a

Please sign in to comment.