File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
import type { Integration , Options } from '@sentry/core' ;
2
2
import {
3
+ applySdkMetadata ,
3
4
consoleIntegration ,
4
5
consoleSandbox ,
5
6
functionToStringIntegration ,
@@ -120,6 +121,8 @@ function _init(
120
121
) ;
121
122
}
122
123
124
+ applySdkMetadata ( options , 'node-core' ) ;
125
+
123
126
const client = new NodeClient ( options ) ;
124
127
// The client is on the current scope, from where it generally is inherited
125
128
getCurrentScope ( ) . setClient ( client ) ;
Original file line number Diff line number Diff line change 1
1
import type { Integration , Options } from '@sentry/core' ;
2
- import { hasSpansEnabled } from '@sentry/core' ;
2
+ import { applySdkMetadata , hasSpansEnabled } from '@sentry/core' ;
3
3
import type { NodeClient } from '@sentry/node-core' ;
4
4
import {
5
5
getDefaultIntegrations as getNodeCoreDefaultIntegrations ,
@@ -50,6 +50,8 @@ function _init(
50
50
options : NodeOptions | undefined = { } ,
51
51
getDefaultIntegrationsImpl : ( options : Options ) => Integration [ ] ,
52
52
) : NodeClient | undefined {
53
+ applySdkMetadata ( options , 'node' ) ;
54
+
53
55
const client = initNodeCore ( {
54
56
...options ,
55
57
// Only use Node SDK defaults if none provided
You can’t perform that action at this time.
0 commit comments