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 11import type { Integration , Options } from '@sentry/core' ;
22import {
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 ) ;
Original file line number Diff line number Diff line change 11import type { Integration , Options } from '@sentry/core' ;
2- import { hasSpansEnabled } from '@sentry/core' ;
2+ import { applySdkMetadata , hasSpansEnabled } from '@sentry/core' ;
33import type { NodeClient } from '@sentry/node-core' ;
44import {
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
You can’t perform that action at this time.
0 commit comments