diff --git a/packages/profiling-node/package.json b/packages/profiling-node/package.json index e6602910ef40..553fd0543912 100644 --- a/packages/profiling-node/package.json +++ b/packages/profiling-node/package.json @@ -78,7 +78,7 @@ }, "dependencies": { "@sentry/core": "8.0.0-alpha.5", - "@sentry/node-experimental": "8.0.0-alpha.5", + "@sentry/node": "8.0.0-alpha.5", "@sentry/types": "8.0.0-alpha.5", "@sentry/utils": "8.0.0-alpha.5", "detect-libc": "^2.0.2", diff --git a/packages/profiling-node/src/integration.ts b/packages/profiling-node/src/integration.ts index a417ac2b1c78..4ba3fab44225 100644 --- a/packages/profiling-node/src/integration.ts +++ b/packages/profiling-node/src/integration.ts @@ -1,5 +1,5 @@ import { defineIntegration, getCurrentScope, getRootSpan, spanToJSON } from '@sentry/core'; -import type { NodeClient } from '@sentry/node-experimental'; +import type { NodeClient } from '@sentry/node'; import type { IntegrationFn, Span } from '@sentry/types'; import { logger } from '@sentry/utils'; diff --git a/packages/profiling-node/src/spanProfileUtils.ts b/packages/profiling-node/src/spanProfileUtils.ts index 61e4b7d8a4de..957ee0e16303 100644 --- a/packages/profiling-node/src/spanProfileUtils.ts +++ b/packages/profiling-node/src/spanProfileUtils.ts @@ -1,5 +1,5 @@ import { spanIsSampled, spanToJSON } from '@sentry/core'; -import type { NodeClient } from '@sentry/node-experimental'; +import type { NodeClient } from '@sentry/node'; import type { CustomSamplingContext, Span } from '@sentry/types'; import { logger, uuid4 } from '@sentry/utils'; diff --git a/packages/profiling-node/src/utils.ts b/packages/profiling-node/src/utils.ts index 626d79db9be1..2d9647e2b558 100644 --- a/packages/profiling-node/src/utils.ts +++ b/packages/profiling-node/src/utils.ts @@ -3,7 +3,7 @@ import type { Context, Envelope, Event, StackFrame, StackParser } from '@sentry/ import { env, versions } from 'process'; import { isMainThread, threadId } from 'worker_threads'; -import * as Sentry from '@sentry/node-experimental'; +import { getCurrentHub } from '@sentry/node'; import { GLOBAL_OBJ, forEachEnvelopeItem, logger } from '@sentry/utils'; import { DEBUG_BUILD } from './debug-build'; @@ -318,7 +318,7 @@ export function applyDebugMetadata(resource_paths: ReadonlyArray): Debug } // eslint-disable-next-line deprecation/deprecation - const hub = Sentry.getCurrentHub(); + const hub = getCurrentHub(); // eslint-disable-next-line deprecation/deprecation const client = hub.getClient(); const options = client && client.getOptions(); diff --git a/packages/profiling-node/test/integration.test.ts b/packages/profiling-node/test/integration.test.ts index 40ae171192e8..040ed5297205 100644 --- a/packages/profiling-node/test/integration.test.ts +++ b/packages/profiling-node/test/integration.test.ts @@ -2,7 +2,7 @@ import { EventEmitter } from 'events'; import type { Transport } from '@sentry/types'; -import type { NodeClient } from '@sentry/node-experimental'; +import type { NodeClient } from '@sentry/node'; import { _nodeProfilingIntegration } from '../src/integration'; describe('ProfilingIntegration', () => { diff --git a/packages/profiling-node/test/spanProfileUtils.test.ts b/packages/profiling-node/test/spanProfileUtils.test.ts index cccdbcd17e31..687b6ca60768 100644 --- a/packages/profiling-node/test/spanProfileUtils.test.ts +++ b/packages/profiling-node/test/spanProfileUtils.test.ts @@ -1,4 +1,4 @@ -import * as Sentry from '@sentry/node-experimental'; +import * as Sentry from '@sentry/node'; import { getMainCarrier } from '@sentry/core'; import type { Transport } from '@sentry/types';