Skip to content

Commit f25a9cf

Browse files
committed
remove deprecation warning
1 parent 1b25948 commit f25a9cf

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

packages/core/src/baseclient.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ import { dsnToString, makeDsn } from './utils-hoist/dsn';
4747
import { addItemToEnvelope, createAttachmentEnvelopeItem } from './utils-hoist/envelope';
4848
import { SentryError } from './utils-hoist/error';
4949
import { isParameterizedString, isPlainObject, isPrimitive, isThenable } from './utils-hoist/is';
50-
import { consoleSandbox, logger } from './utils-hoist/logger';
50+
import { logger } from './utils-hoist/logger';
5151
import { checkOrSetAlreadyCaught, uuid4 } from './utils-hoist/misc';
5252
import { SyncPromise, rejectedSyncPromise, resolvedSyncPromise } from './utils-hoist/syncpromise';
5353
import { getPossibleEventMessages } from './utils/eventUtils';
@@ -144,18 +144,6 @@ export abstract class BaseClient<O extends ClientOptions> implements Client<O> {
144144
url,
145145
});
146146
}
147-
148-
// TODO(v9): Remove this deprecation warning
149-
const tracingOptions = ['enableTracing', 'tracesSampleRate', 'tracesSampler'] as const;
150-
const undefinedOption = tracingOptions.find(option => option in options && options[option] == undefined);
151-
if (undefinedOption) {
152-
consoleSandbox(() => {
153-
// eslint-disable-next-line no-console
154-
console.warn(
155-
`[Sentry] Deprecation warning: \`${undefinedOption}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`,
156-
);
157-
});
158-
}
159147
}
160148

161149
/**

0 commit comments

Comments
 (0)