Skip to content

Commit 07d83de

Browse files
authored
fix(node): Correct SDK name (#10961)
1 parent 7b7370f commit 07d83de

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

packages/node-experimental/src/sdk/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class NodeClient extends ServerRuntimeClient<NodeClientOptions> {
1919
serverName: options.serverName || global.process.env.SENTRY_NAME || os.hostname(),
2020
};
2121

22-
applySdkMetadata(clientOptions, 'node-experimental');
22+
applySdkMetadata(clientOptions, 'node');
2323

2424
super(clientOptions);
2525
}
@@ -30,7 +30,7 @@ export class NodeClient extends ServerRuntimeClient<NodeClientOptions> {
3030
return this._tracer;
3131
}
3232

33-
const name = '@sentry/node-experimental';
33+
const name = '@sentry/node';
3434
const version = SDK_VERSION;
3535
const tracer = trace.getTracer(name, version);
3636
this._tracer = tracer;

packages/node-experimental/src/sdk/hub.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export function getCurrentHub(): Hub {
8282
// eslint-disable-next-line @typescript-eslint/no-explicit-any
8383
): any {
8484
// eslint-disable-next-line no-console
85-
console.warn('startTransaction is a noop in @sentry/node-experimental. Use `startSpan` instead.');
85+
console.warn('startTransaction is a noop in @sentry/node. Use `startSpan` instead.');
8686
// We return an object here as hub.ts checks for the result of this
8787
// and renders a different warning if this is empty
8888
return {};

packages/node-experimental/src/sdk/initOtel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function setupOtel(client: NodeClient): BasicTracerProvider {
4848
const provider = new BasicTracerProvider({
4949
sampler: new SentrySampler(client),
5050
resource: new Resource({
51-
[SemanticResourceAttributes.SERVICE_NAME]: 'node-experimental',
51+
[SemanticResourceAttributes.SERVICE_NAME]: 'node',
5252
[SemanticResourceAttributes.SERVICE_NAMESPACE]: 'sentry',
5353
[SemanticResourceAttributes.SERVICE_VERSION]: SDK_VERSION,
5454
}),

packages/node-experimental/test/integration/transactions.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ describe('Integration | Transactions', () => {
7575
'sentry.source': 'task',
7676
},
7777
resource: {
78-
'service.name': 'node-experimental',
78+
'service.name': 'node',
7979
'service.namespace': 'sentry',
8080
'service.version': expect.any(String),
8181
'telemetry.sdk.language': 'nodejs',

packages/node-experimental/test/sdk/client.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ describe('NodeClient', () => {
4343
stackParser: options.stackParser,
4444
_metadata: {
4545
sdk: {
46-
name: 'sentry.javascript.node-experimental',
46+
name: 'sentry.javascript.node',
4747
packages: [
4848
{
49-
name: 'npm:@sentry/node-experimental',
49+
name: 'npm:@sentry/node',
5050
version: SDK_VERSION,
5151
},
5252
],

0 commit comments

Comments
 (0)