File tree Expand file tree Collapse file tree 2 files changed +2
-19
lines changed Expand file tree Collapse file tree 2 files changed +2
-19
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ export class NodeClient extends ServerRuntimeClient<NodeClientOptions> {
156
156
}
157
157
158
158
function applyDefaultOptions < T extends Partial < NodeClientOptions > > ( options : T ) : T {
159
- const release = getRelease ( options . release ) ;
159
+ const release = options . release ?? getSentryRelease ( ) ;
160
160
const spotlight =
161
161
options . spotlight ?? envToBool ( process . env . SENTRY_SPOTLIGHT , { strict : true } ) ?? process . env . SENTRY_SPOTLIGHT ;
162
162
const tracesSampleRate = getTracesSampleRate ( options . tracesSampleRate ) ;
@@ -177,19 +177,6 @@ function applyDefaultOptions<T extends Partial<NodeClientOptions>>(options: T):
177
177
} ;
178
178
}
179
179
180
- function getRelease ( release : NodeClientOptions [ 'release' ] ) : string | undefined {
181
- if ( release !== undefined ) {
182
- return release ;
183
- }
184
-
185
- const detectedRelease = getSentryRelease ( ) ;
186
- if ( detectedRelease !== undefined ) {
187
- return detectedRelease ;
188
- }
189
-
190
- return undefined ;
191
- }
192
-
193
180
/**
194
181
* Tries to get a `tracesSampleRate`, possibly extracted from the environment variables.
195
182
*/
Original file line number Diff line number Diff line change @@ -104,11 +104,7 @@ export function initWithoutDefaultIntegrations(options: NodeOptions = {}): NodeC
104
104
105
105
/**
106
106
* Initialize a Node client with the provided options and default integrations getter function.
107
- * This is an internal method the SDK uses under the hood to set up things - you should not use this as a user!
108
- * Instead, use `init()` to initialize the SDK.
109
- *
110
- * @hidden
111
- * @internal
107
+ * This is an internal method the SDK uses under the hood to set up things.
112
108
*/
113
109
function _init (
114
110
options : NodeOptions = { } ,
You can’t perform that action at this time.
0 commit comments