Skip to content

Commit 4291bce

Browse files
authored
feat(profiling): Use OTEL powered node package (#11239)
ref #9956 This is another attempt at #11033 now that #11135 has merged in.
1 parent fca5c03 commit 4291bce

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

packages/profiling-node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
},
7979
"dependencies": {
8080
"@sentry/core": "8.0.0-alpha.5",
81-
"@sentry/node-experimental": "8.0.0-alpha.5",
81+
"@sentry/node": "8.0.0-alpha.5",
8282
"@sentry/types": "8.0.0-alpha.5",
8383
"@sentry/utils": "8.0.0-alpha.5",
8484
"detect-libc": "^2.0.2",

packages/profiling-node/src/integration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { defineIntegration, getCurrentScope, getRootSpan, spanToJSON } from '@sentry/core';
2-
import type { NodeClient } from '@sentry/node-experimental';
2+
import type { NodeClient } from '@sentry/node';
33
import type { IntegrationFn, Span } from '@sentry/types';
44

55
import { logger } from '@sentry/utils';

packages/profiling-node/src/spanProfileUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { spanIsSampled, spanToJSON } from '@sentry/core';
2-
import type { NodeClient } from '@sentry/node-experimental';
2+
import type { NodeClient } from '@sentry/node';
33
import type { CustomSamplingContext, Span } from '@sentry/types';
44
import { logger, uuid4 } from '@sentry/utils';
55

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-experimental';
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();

packages/profiling-node/test/integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { EventEmitter } from 'events';
22

33
import type { Transport } from '@sentry/types';
44

5-
import type { NodeClient } from '@sentry/node-experimental';
5+
import type { NodeClient } from '@sentry/node';
66
import { _nodeProfilingIntegration } from '../src/integration';
77

88
describe('ProfilingIntegration', () => {

packages/profiling-node/test/spanProfileUtils.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as Sentry from '@sentry/node-experimental';
1+
import * as Sentry from '@sentry/node';
22

33
import { getMainCarrier } from '@sentry/core';
44
import type { Transport } from '@sentry/types';

0 commit comments

Comments
 (0)