Skip to content

Commit 12fb549

Browse files
committed
don't do anything with the dsn
1 parent 0585a78 commit 12fb549

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

packages/browser/src/sdk.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ export function init(options: BrowserOptions = {}): void {
110110
const clientOptions: BrowserClientOptions = {
111111
...options,
112112
...defaultCoreOptions,
113-
dsn: options.dsn === undefined ? undefined : makeDsn(options.dsn),
114113
stackParser: stackParserFromOptions(options),
115114
integrations: getIntegrationsToSetup(options),
116115
transport,

packages/node/src/sdk.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ export function init(options: NodeOptions = {}): void {
138138
const clientOptions: NodeClientOptions = {
139139
...options,
140140
...defaultCoreOptions,
141-
dsn: options.dsn === undefined ? undefined : makeDsn(process.env.SENTRY_DSN ? process.env.SENTRY_DSN : options.dsn),
142141
stackParser: stackParserFromOptions(options),
143142
integrations: getIntegrationsToSetup(options),
144143
transport,

packages/types/src/options.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export interface ClientOptions {
3939
* The Dsn used to connect to Sentry and identify the project. If omitted, the
4040
* SDK will not send any data to Sentry.
4141
*/
42-
dsn?: DsnComponents;
42+
dsn?: string;
4343

4444
/**
4545
* The release identifier used when uploading respective source maps. Specify
@@ -203,13 +203,7 @@ export interface ClientOptions {
203203
}
204204

205205
/** Base configuration options for every SDK. */
206-
export interface Options extends Omit<Partial<ClientOptions>, 'dsn' | 'integrations' | 'transport' | 'stackParser'> {
207-
/**
208-
* The Dsn used to connect to Sentry and identify the project. If omitted, the
209-
* SDK will not send any data to Sentry.
210-
*/
211-
dsn?: string;
212-
206+
export interface Options extends Omit<Partial<ClientOptions>, 'integrations' | 'transport' | 'stackParser'> {
213207
/**
214208
* If this is set to false, default integrations will not be added, otherwise this will internally be set to the
215209
* recommended default integrations.

0 commit comments

Comments
 (0)