Skip to content

Commit 88a975a

Browse files
committed
Apply correct SDK metadata to node and node-core
1 parent 64d056a commit 88a975a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

packages/node-core/src/sdk/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { Integration, Options } from '@sentry/core';
22
import {
3+
applySdkMetadata,
34
consoleIntegration,
45
consoleSandbox,
56
functionToStringIntegration,
@@ -120,6 +121,8 @@ function _init(
120121
);
121122
}
122123

124+
applySdkMetadata(options, 'node-core');
125+
123126
const client = new NodeClient(options);
124127
// The client is on the current scope, from where it generally is inherited
125128
getCurrentScope().setClient(client);

packages/node/src/sdk/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { Integration, Options } from '@sentry/core';
2-
import { hasSpansEnabled } from '@sentry/core';
2+
import { applySdkMetadata, hasSpansEnabled } from '@sentry/core';
33
import type { NodeClient } from '@sentry/node-core';
44
import {
55
getDefaultIntegrations as getNodeCoreDefaultIntegrations,
@@ -50,6 +50,8 @@ function _init(
5050
options: NodeOptions | undefined = {},
5151
getDefaultIntegrationsImpl: (options: Options) => Integration[],
5252
): NodeClient | undefined {
53+
applySdkMetadata(options, 'node');
54+
5355
const client = initNodeCore({
5456
...options,
5557
// Only use Node SDK defaults if none provided

0 commit comments

Comments
 (0)