diff --git a/dev-packages/browser-integration-tests/suites/sessions/v7-hub-start-session/init.js b/dev-packages/browser-integration-tests/suites/sessions/v7-hub-start-session/init.js
deleted file mode 100644
index 5b72efb558f8..000000000000
--- a/dev-packages/browser-integration-tests/suites/sessions/v7-hub-start-session/init.js
+++ /dev/null
@@ -1,12 +0,0 @@
-import * as Sentry from '@sentry/browser';
-
-window.Sentry = Sentry;
-
-Sentry.init({
- dsn: 'https://public@dsn.ingest.sentry.io/1337',
- release: '0.1',
-});
-
-// simulate old startSessionTracking behavior
-Sentry.getCurrentHub().startSession({ ignoreDuration: true });
-Sentry.getCurrentHub().captureSession();
diff --git a/dev-packages/browser-integration-tests/suites/sessions/v7-hub-start-session/template.html b/dev-packages/browser-integration-tests/suites/sessions/v7-hub-start-session/template.html
deleted file mode 100644
index 77906444cbce..000000000000
--- a/dev-packages/browser-integration-tests/suites/sessions/v7-hub-start-session/template.html
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
- Navigate
-
-
diff --git a/dev-packages/browser-integration-tests/suites/sessions/v7-hub-start-session/test.ts b/dev-packages/browser-integration-tests/suites/sessions/v7-hub-start-session/test.ts
deleted file mode 100644
index 0dd12d17fe95..000000000000
--- a/dev-packages/browser-integration-tests/suites/sessions/v7-hub-start-session/test.ts
+++ /dev/null
@@ -1,34 +0,0 @@
-import type { Route } from '@playwright/test';
-import { expect } from '@playwright/test';
-import type { SessionContext } from '@sentry/core';
-
-import { sentryTest } from '../../../utils/fixtures';
-import { getFirstSentryEnvelopeRequest } from '../../../utils/helpers';
-
-sentryTest('should start a new session on pageload.', async ({ getLocalTestUrl, page }) => {
- const url = await getLocalTestUrl({ testDir: __dirname });
- const session = await getFirstSentryEnvelopeRequest(page, url);
-
- expect(session).toBeDefined();
- expect(session.init).toBe(true);
- expect(session.errors).toBe(0);
- expect(session.status).toBe('ok');
-});
-
-sentryTest('should start a new session with navigation.', async ({ getLocalTestUrl, page }) => {
- const url = await getLocalTestUrl({ testDir: __dirname });
- await page.route('**/foo', (route: Route) => route.continue({ url }));
-
- const initSession = await getFirstSentryEnvelopeRequest(page, url);
-
- await page.locator('#navigate').click();
-
- const newSession = await getFirstSentryEnvelopeRequest(page, url);
-
- expect(newSession).toBeDefined();
- expect(newSession.init).toBe(true);
- expect(newSession.errors).toBe(0);
- expect(newSession.status).toBe('ok');
- expect(newSession.sid).toBeDefined();
- expect(initSession.sid).not.toBe(newSession.sid);
-});
diff --git a/docs/migration/v8-to-v9.md b/docs/migration/v8-to-v9.md
index 3b090a364386..d734bdf5245f 100644
--- a/docs/migration/v8-to-v9.md
+++ b/docs/migration/v8-to-v9.md
@@ -180,6 +180,7 @@ Sentry.init({
```
- The `DEFAULT_USER_INCLUDES` constant has been removed.
+- The `getCurrentHub()`, `Hub` and `getCurrentHubShim()` APIs have been removed. They were on compatibility life support since the release of v8 and have now been fully removed from the SDK.
### `@sentry/browser`
diff --git a/packages/astro/src/index.server.ts b/packages/astro/src/index.server.ts
index e788549c0a78..57abd7efede3 100644
--- a/packages/astro/src/index.server.ts
+++ b/packages/astro/src/index.server.ts
@@ -45,8 +45,6 @@ export {
getActiveSpan,
getAutoPerformanceIntegrations,
getClient,
- // eslint-disable-next-line deprecation/deprecation
- getCurrentHub,
getCurrentScope,
getDefaultIntegrations,
getGlobalScope,
diff --git a/packages/astro/src/index.types.ts b/packages/astro/src/index.types.ts
index 8a9c1935547b..eeadf11fa3d5 100644
--- a/packages/astro/src/index.types.ts
+++ b/packages/astro/src/index.types.ts
@@ -24,9 +24,6 @@ export declare const defaultStackParser: StackParser;
export declare function close(timeout?: number | undefined): PromiseLike;
export declare function flush(timeout?: number | undefined): PromiseLike;
-// eslint-disable-next-line deprecation/deprecation
-export declare const getCurrentHub: typeof clientSdk.getCurrentHub;
-
export declare const Span: clientSdk.Span;
export default sentryAstro;
diff --git a/packages/aws-serverless/src/index.ts b/packages/aws-serverless/src/index.ts
index e2e405768b3b..60747de09dd5 100644
--- a/packages/aws-serverless/src/index.ts
+++ b/packages/aws-serverless/src/index.ts
@@ -12,8 +12,6 @@ export {
endSession,
withMonitor,
createTransport,
- // eslint-disable-next-line deprecation/deprecation
- getCurrentHub,
getClient,
isInitialized,
generateInstrumentOnce,
diff --git a/packages/browser/src/exports.ts b/packages/browser/src/exports.ts
index 289643a6c6c0..ae2ff9c3fa87 100644
--- a/packages/browser/src/exports.ts
+++ b/packages/browser/src/exports.ts
@@ -30,8 +30,6 @@ export {
createTransport,
lastEventId,
flush,
- // eslint-disable-next-line deprecation/deprecation
- getCurrentHub,
getClient,
isInitialized,
getCurrentScope,
diff --git a/packages/browser/test/sdk.test.ts b/packages/browser/test/sdk.test.ts
index 192915c8442d..a6fc49edee89 100644
--- a/packages/browser/test/sdk.test.ts
+++ b/packages/browser/test/sdk.test.ts
@@ -7,9 +7,9 @@ import type { Mock } from 'vitest';
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import * as SentryCore from '@sentry/core';
-import { Scope, createTransport } from '@sentry/core';
+import { createTransport } from '@sentry/core';
import { resolvedSyncPromise } from '@sentry/core';
-import type { Client, Integration } from '@sentry/core';
+import type { Integration } from '@sentry/core';
import type { BrowserOptions } from '../src';
import { WINDOW } from '../src';
@@ -34,30 +34,6 @@ export class MockIntegration implements Integration {
}
}
-vi.mock('@sentry/core', async requireActual => {
- return {
- ...((await requireActual()) as any),
- getCurrentHub(): {
- bindClient(client: Client): boolean;
- getClient(): boolean;
- getScope(): Scope;
- } {
- return {
- getClient(): boolean {
- return false;
- },
- getScope(): Scope {
- return new Scope();
- },
- bindClient(client: Client): boolean {
- client.init!();
- return true;
- },
- };
- },
- };
-});
-
describe('init', () => {
beforeEach(() => {
vi.clearAllMocks();
diff --git a/packages/bun/src/index.ts b/packages/bun/src/index.ts
index 78a62896ef8e..8617030f12d9 100644
--- a/packages/bun/src/index.ts
+++ b/packages/bun/src/index.ts
@@ -31,8 +31,6 @@ export {
endSession,
withMonitor,
createTransport,
- // eslint-disable-next-line deprecation/deprecation
- getCurrentHub,
getClient,
isInitialized,
generateInstrumentOnce,
diff --git a/packages/core/src/getCurrentHubShim.ts b/packages/core/src/getCurrentHubShim.ts
deleted file mode 100644
index b76febd68b9b..000000000000
--- a/packages/core/src/getCurrentHubShim.ts
+++ /dev/null
@@ -1,73 +0,0 @@
-import { addBreadcrumb } from './breadcrumbs';
-import type { Client } from './client';
-import { getClient, getCurrentScope, getIsolationScope, withScope } from './currentScopes';
-import {
- captureEvent,
- captureSession,
- endSession,
- setContext,
- setExtra,
- setExtras,
- setTag,
- setTags,
- setUser,
- startSession,
-} from './exports';
-import type { EventHint, Hub, Integration, SeverityLevel } from './types-hoist';
-
-/**
- * This is for legacy reasons, and returns a proxy object instead of a hub to be used.
- *
- * @deprecated Use the methods directly from the top level Sentry API (e.g. `Sentry.withScope`)
- * For more information see our migration guide for
- * [replacing `getCurrentHub` and `Hub`](https://github.com/getsentry/sentry-javascript/blob/develop/MIGRATION.md#deprecate-hub)
- * usage
- */
-// eslint-disable-next-line deprecation/deprecation
-export function getCurrentHubShim(): Hub {
- return {
- bindClient(client: Client): void {
- const scope = getCurrentScope();
- scope.setClient(client);
- },
-
- withScope,
- getClient: () => getClient() as C | undefined,
- getScope: getCurrentScope,
- getIsolationScope,
- captureException: (exception: unknown, hint?: EventHint) => {
- return getCurrentScope().captureException(exception, hint);
- },
- captureMessage: (message: string, level?: SeverityLevel, hint?: EventHint) => {
- return getCurrentScope().captureMessage(message, level, hint);
- },
- captureEvent,
- addBreadcrumb,
- setUser,
- setTags,
- setTag,
- setExtra,
- setExtras,
- setContext,
-
- getIntegration(_integration: unknown): T | null {
- return null;
- },
-
- startSession,
- endSession,
- captureSession,
- };
-}
-
-/**
- * Returns the default hub instance.
- *
- * If a hub is already registered in the global carrier but this module
- * contains a more recent version, it replaces the registered version.
- * Otherwise, the currently registered hub will be returned.
- *
- * @deprecated Use the respective replacement method directly instead.
- */
-// eslint-disable-next-line deprecation/deprecation
-export const getCurrentHub = getCurrentHubShim;
diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts
index 6bea39b1db64..2c89d0e8a60b 100644
--- a/packages/core/src/index.ts
+++ b/packages/core/src/index.ts
@@ -115,9 +115,6 @@ export { trpcMiddleware } from './trpc';
export { captureFeedback } from './feedback';
export type { ReportDialogOptions } from './report-dialog';
-// eslint-disable-next-line deprecation/deprecation
-export { getCurrentHubShim, getCurrentHub } from './getCurrentHubShim';
-
// TODO: Make this structure pretty again and don't do "export *"
export * from './utils-hoist/index';
// TODO: Make this structure pretty again and don't do "export *"
diff --git a/packages/core/src/types-hoist/hub.ts b/packages/core/src/types-hoist/hub.ts
deleted file mode 100644
index bd270df39f5c..000000000000
--- a/packages/core/src/types-hoist/hub.ts
+++ /dev/null
@@ -1,209 +0,0 @@
-import type { Client } from '../client';
-import type { Scope } from '../scope';
-import type { Breadcrumb, BreadcrumbHint } from './breadcrumb';
-import type { Event, EventHint } from './event';
-import type { Extra, Extras } from './extra';
-import type { Integration } from './integration';
-import type { Primitive } from './misc';
-import type { Session } from './session';
-import type { SeverityLevel } from './severity';
-import type { User } from './user';
-
-/**
- * Internal class used to make sure we always have the latest internal functions
- * working in case we have a version conflict.
- *
- * @deprecated This interface will be removed in a future major version of the SDK in favour of
- * `Scope` and `Client` objects and APIs.
- *
- * Most APIs referencing `Hub` are themselves and will be removed in version 8 of the SDK. More information:
- * - [Migration Guide](https://github.com/getsentry/sentry-javascript/blob/develop/MIGRATION.md#deprecate-hub)
- *
- */
-export interface Hub {
- /**
- * This binds the given client to the current scope.
- * @param client An SDK client (client) instance.
- *
- * @deprecated Use `initAndBind()` directly.
- */
- bindClient(client?: Client): void;
-
- /**
- * Creates a new scope with and executes the given operation within.
- * The scope is automatically removed once the operation
- * finishes or throws.
- *
- * This is essentially a convenience function for:
- *
- * pushScope();
- * callback();
- * popScope();
- *
- * @param callback that will be enclosed into push/popScope.
- *
- * @deprecated Use `Sentry.withScope()` instead.
- */
- withScope(callback: (scope: Scope) => T): T;
-
- /**
- * Returns the client of the top stack.
- * @deprecated Use `Sentry.getClient()` instead.
- */
- getClient(): C | undefined;
-
- /**
- * Returns the scope of the top stack.
- * @deprecated Use `Sentry.getCurrentScope()` instead.
- */
- getScope(): Scope;
-
- /**
- * Get the currently active isolation scope.
- * The isolation scope is used to isolate data between different hubs.
- *
- * @deprecated Use `Sentry.getIsolationScope()` instead.
- */
- getIsolationScope(): Scope;
-
- /**
- * Captures an exception event and sends it to Sentry.
- *
- * @param exception An exception-like object.
- * @param hint May contain additional information about the original exception.
- * @returns The generated eventId.
- *
- * @deprecated Use `Sentry.captureException()` instead.
- */
- captureException(exception: any, hint?: EventHint): string;
-
- /**
- * Captures a message event and sends it to Sentry.
- *
- * @param message The message to send to Sentry.
- * @param level Define the level of the message.
- * @param hint May contain additional information about the original exception.
- * @returns The generated eventId.
- *
- * @deprecated Use `Sentry.captureMessage()` instead.
- */
- captureMessage(message: string, level?: SeverityLevel, hint?: EventHint): string;
-
- /**
- * Captures a manually created event and sends it to Sentry.
- *
- * @param event The event to send to Sentry.
- * @param hint May contain additional information about the original exception.
- *
- * @deprecated Use `Sentry.captureEvent()` instead.
- */
- captureEvent(event: Event, hint?: EventHint): string;
-
- /**
- * Records a new breadcrumb which will be attached to future events.
- *
- * Breadcrumbs will be added to subsequent events to provide more context on
- * user's actions prior to an error or crash.
- *
- * @param breadcrumb The breadcrumb to record.
- * @param hint May contain additional information about the original breadcrumb.
- *
- * @deprecated Use `Sentry.addBreadcrumb()` instead.
- */
- addBreadcrumb(breadcrumb: Breadcrumb, hint?: BreadcrumbHint): void;
-
- /**
- * Updates user context information for future events.
- *
- * @param user User context object to be set in the current context. Pass `null` to unset the user.
- *
- * @deprecated Use `Sentry.setUser()` instead.
- */
- setUser(user: User | null): void;
-
- /**
- * Set an object that will be merged sent as tags data with the event.
- *
- * @param tags Tags context object to merge into current context.
- *
- * @deprecated Use `Sentry.setTags()` instead.
- */
- setTags(tags: { [key: string]: Primitive }): void;
-
- /**
- * Set key:value that will be sent as tags data with the event.
- *
- * Can also be used to unset a tag, by passing `undefined`.
- *
- * @param key String key of tag
- * @param value Value of tag
- *
- * @deprecated Use `Sentry.setTag()` instead.
- */
- setTag(key: string, value: Primitive): void;
-
- /**
- * Set key:value that will be sent as extra data with the event.
- * @param key String of extra
- * @param extra Any kind of data. This data will be normalized.
- *
- * @deprecated Use `Sentry.setExtra()` instead.
- */
- setExtra(key: string, extra: Extra): void;
-
- /**
- * Set an object that will be merged sent as extra data with the event.
- * @param extras Extras object to merge into current context.
- *
- * @deprecated Use `Sentry.setExtras()` instead.
- */
- setExtras(extras: Extras): void;
-
- /**
- * Sets context data with the given name.
- * @param name of the context
- * @param context Any kind of data. This data will be normalized.
- *
- * @deprecated Use `Sentry.setContext()` instead.
- */
- setContext(name: string, context: { [key: string]: any } | null): void;
-
- /**
- * Returns the integration if installed on the current client.
- *
- * @deprecated Use `Sentry.getClient().getIntegrationByName()` instead.
- */
- getIntegration(integration: unknown): T | null;
-
- /**
- * Starts a new `Session`, sets on the current scope and returns it.
- *
- * To finish a `session`, it has to be passed directly to `client.captureSession`, which is done automatically
- * when using `hub.endSession()` for the session currently stored on the scope.
- *
- * When there's already an existing session on the scope, it'll be automatically ended.
- *
- * @param context Optional properties of the new `Session`.
- *
- * @returns The session which was just started
- *
- * @deprecated Use top-level `startSession` instead.
- */
- startSession(context?: Session): Session;
-
- /**
- * Ends the session that lives on the current scope and sends it to Sentry
- *
- * @deprecated Use top-level `endSession` instead.
- */
- endSession(): void;
-
- /**
- * Sends the current session on the scope to Sentry
- *
- * @param endSession If set the session will be marked as exited and removed from the scope
- *
- * @deprecated Use top-level `captureSession` instead.
- */
- captureSession(endSession?: boolean): void;
-}
diff --git a/packages/core/src/types-hoist/index.ts b/packages/core/src/types-hoist/index.ts
index b1b1b942f32b..c1cbe5284808 100644
--- a/packages/core/src/types-hoist/index.ts
+++ b/packages/core/src/types-hoist/index.ts
@@ -55,8 +55,6 @@ export type { Event, EventHint, EventType, ErrorEvent, TransactionEvent } from '
export type { EventProcessor } from './eventprocessor';
export type { Exception } from './exception';
export type { Extra, Extras } from './extra';
-// eslint-disable-next-line deprecation/deprecation
-export type { Hub } from './hub';
export type { Integration, IntegrationFn } from './integration';
export type { Mechanism } from './mechanism';
export type { ExtractedNodeRequestData, HttpHeaderValue, Primitive, WorkerLocation } from './misc';
diff --git a/packages/core/src/types-hoist/options.ts b/packages/core/src/types-hoist/options.ts
index bbe501ffd88b..49f3daa93b8e 100644
--- a/packages/core/src/types-hoist/options.ts
+++ b/packages/core/src/types-hoist/options.ts
@@ -247,8 +247,7 @@ export interface ClientOptions): S
localStack.pop();
// When using synthetic events, we will have a 2 levels deep stack, as `new Error('Sentry syntheticException')`
- // is produced within the hub itself, making it:
+ // is produced within the scope itself, making it:
//
// Sentry.captureException()
- // getCurrentHub().captureException()
+ // scope.captureException()
//
// instead of just the top `Sentry` call itself.
// This forces us to possibly strip an additional frame in the exact same was as above.
diff --git a/packages/google-cloud-serverless/src/index.ts b/packages/google-cloud-serverless/src/index.ts
index e7c1e4296dde..dd7558351911 100644
--- a/packages/google-cloud-serverless/src/index.ts
+++ b/packages/google-cloud-serverless/src/index.ts
@@ -12,8 +12,6 @@ export {
endSession,
withMonitor,
createTransport,
- // eslint-disable-next-line deprecation/deprecation
- getCurrentHub,
getClient,
isInitialized,
generateInstrumentOnce,
diff --git a/packages/node/src/index.ts b/packages/node/src/index.ts
index a62d190ac8ed..6493e0280b3b 100644
--- a/packages/node/src/index.ts
+++ b/packages/node/src/index.ts
@@ -93,8 +93,6 @@ export {
getSpanDescendants,
parameterize,
getClient,
- // eslint-disable-next-line deprecation/deprecation
- getCurrentHub,
getCurrentScope,
getIsolationScope,
getTraceData,
diff --git a/packages/node/src/otel/contextManager.ts b/packages/node/src/otel/contextManager.ts
index e0e7da218326..252508eb7c88 100644
--- a/packages/node/src/otel/contextManager.ts
+++ b/packages/node/src/otel/contextManager.ts
@@ -3,7 +3,7 @@ import { wrapContextManagerClass } from '@sentry/opentelemetry';
/**
* This is a custom ContextManager for OpenTelemetry, which extends the default AsyncLocalStorageContextManager.
- * It ensures that we create a new hub per context, so that the OTEL Context & the Sentry Hub are always in sync.
+ * It ensures that we create a new hub per context, so that the OTEL Context & the Sentry Scopes are always in sync.
*
* Note that we currently only support AsyncHooks with this,
* but since this should work for Node 14+ anyhow that should be good enough.
diff --git a/packages/node/src/types.ts b/packages/node/src/types.ts
index 24b88263c97b..43a93d16b563 100644
--- a/packages/node/src/types.ts
+++ b/packages/node/src/types.ts
@@ -35,8 +35,7 @@ export interface BaseNodeOptions {
* Profiling is enabled if either this or `profilesSampleRate` is defined. If both are defined, `profilesSampleRate` is
* ignored.
*
- * Will automatically be passed a context object of default and optional custom data. See
- * {@link Transaction.samplingContext} and {@link Hub.startTransaction}.
+ * Will automatically be passed a context object of default and optional custom data.
*
* @returns A sample rate between 0 and 1 (0 drops the profile, 1 guarantees it will be sent). Returning `true` is
* equivalent to returning 1 and returning `false` is equivalent to returning 0.
diff --git a/packages/opentelemetry/src/index.ts b/packages/opentelemetry/src/index.ts
index 19a61f0f130f..e3ae6536e11e 100644
--- a/packages/opentelemetry/src/index.ts
+++ b/packages/opentelemetry/src/index.ts
@@ -37,8 +37,6 @@ export {
export { suppressTracing } from './utils/suppressTracing';
-// eslint-disable-next-line deprecation/deprecation
-export { getCurrentHubShim } from '@sentry/core';
export { setupEventContextTrace } from './setupEventContextTrace';
export { setOpenTelemetryContextAsyncContextStrategy } from './asyncContextStrategy';
diff --git a/packages/remix/src/index.server.ts b/packages/remix/src/index.server.ts
index 640282b57bed..9084284217a9 100644
--- a/packages/remix/src/index.server.ts
+++ b/packages/remix/src/index.server.ts
@@ -47,8 +47,6 @@ export {
getActiveSpan,
getAutoPerformanceIntegrations,
getClient,
- // eslint-disable-next-line deprecation/deprecation
- getCurrentHub,
getCurrentScope,
getDefaultIntegrations,
getGlobalScope,
diff --git a/packages/remix/src/index.types.ts b/packages/remix/src/index.types.ts
index 27325bbe621f..5cfb7114bbbc 100644
--- a/packages/remix/src/index.types.ts
+++ b/packages/remix/src/index.types.ts
@@ -25,9 +25,6 @@ export declare function captureRemixServerException(err: unknown, name: string,
// methods from `@sentry/core`.
declare const runtime: 'client' | 'server';
-// eslint-disable-next-line deprecation/deprecation
-export declare const getCurrentHub: typeof clientSdk.getCurrentHub;
-
export const close = runtime === 'client' ? clientSdk.close : serverSdk.close;
export const flush = runtime === 'client' ? clientSdk.flush : serverSdk.flush;
export const lastEventId = runtime === 'client' ? clientSdk.lastEventId : serverSdk.lastEventId;
diff --git a/packages/replay-internal/test/unit/session/createSession.test.ts b/packages/replay-internal/test/unit/session/createSession.test.ts
index 8cd186f4aeea..05db8c2fd96e 100644
--- a/packages/replay-internal/test/unit/session/createSession.test.ts
+++ b/packages/replay-internal/test/unit/session/createSession.test.ts
@@ -2,12 +2,10 @@
* @vitest-environment jsdom
*/
-import type { MockedFunction } from 'vitest';
import { afterEach, beforeAll, describe, expect, it, vi } from 'vitest';
-import * as Sentry from '@sentry/core';
+import type * as Sentry from '@sentry/core';
-import type { Hub } from '@sentry/core';
import { WINDOW } from '../../../src/constants';
import { createSession } from '../../../src/session/createSession';
import { saveSession } from '../../../src/session/saveSession';
@@ -21,19 +19,11 @@ vi.mock('@sentry/core', async () => {
};
});
-type CaptureEventMockType = MockedFunction;
-
describe('Unit | session | createSession', () => {
- const captureEventMock: CaptureEventMockType = vi.fn();
+ const captureEventMock = vi.fn();
beforeAll(() => {
WINDOW.sessionStorage.clear();
- vi.spyOn(Sentry, 'getCurrentHub').mockImplementation(() => {
- return {
- captureEvent: captureEventMock,
- // eslint-disable-next-line deprecation/deprecation
- } as unknown as Hub;
- });
});
afterEach(() => {
diff --git a/packages/solidstart/src/server/index.ts b/packages/solidstart/src/server/index.ts
index 599739c07084..a6362af1c7f4 100644
--- a/packages/solidstart/src/server/index.ts
+++ b/packages/solidstart/src/server/index.ts
@@ -39,8 +39,6 @@ export {
getActiveSpan,
getAutoPerformanceIntegrations,
getClient,
- // eslint-disable-next-line deprecation/deprecation
- getCurrentHub,
getCurrentScope,
getDefaultIntegrations,
getGlobalScope,
diff --git a/packages/sveltekit/src/index.types.ts b/packages/sveltekit/src/index.types.ts
index 6f45425e33e0..3ad8b728bb5f 100644
--- a/packages/sveltekit/src/index.types.ts
+++ b/packages/sveltekit/src/index.types.ts
@@ -42,9 +42,6 @@ export declare const contextLinesIntegration: typeof clientSdk.contextLinesInteg
export declare const getDefaultIntegrations: (options: Options) => Integration[];
export declare const defaultStackParser: StackParser;
-// eslint-disable-next-line deprecation/deprecation
-export declare const getCurrentHub: typeof clientSdk.getCurrentHub;
-
export declare function close(timeout?: number | undefined): PromiseLike;
export declare function flush(timeout?: number | undefined): PromiseLike;
export declare function lastEventId(): string | undefined;
diff --git a/packages/sveltekit/src/server/index.ts b/packages/sveltekit/src/server/index.ts
index 690869593a7b..232e0562eb22 100644
--- a/packages/sveltekit/src/server/index.ts
+++ b/packages/sveltekit/src/server/index.ts
@@ -39,8 +39,6 @@ export {
getActiveSpan,
getAutoPerformanceIntegrations,
getClient,
- // eslint-disable-next-line deprecation/deprecation
- getCurrentHub,
getCurrentScope,
getDefaultIntegrations,
getGlobalScope,
diff --git a/packages/types/src/index.ts b/packages/types/src/index.ts
index 346ef1cda36a..91950b2c8b38 100644
--- a/packages/types/src/index.ts
+++ b/packages/types/src/index.ts
@@ -73,7 +73,6 @@ import type {
HandlerDataUnhandledRejection as HandlerDataUnhandledRejection_imported,
HandlerDataXhr as HandlerDataXhr_imported,
HttpHeaderValue as HttpHeaderValue_imported,
- Hub as Hub_imported,
InProgressCheckIn as InProgressCheckIn_imported,
InformationUnit as InformationUnit_imported,
Integration as Integration_imported,
@@ -299,9 +298,6 @@ export type Extra = Extra_imported;
/** @deprecated This type has been moved to `@sentry/core`. */
export type Extras = Extras_imported;
/** @deprecated This type has been moved to `@sentry/core`. */
-// eslint-disable-next-line deprecation/deprecation
-export type Hub = Hub_imported;
-/** @deprecated This type has been moved to `@sentry/core`. */
export type Integration = Integration_imported;
/** @deprecated This type has been moved to `@sentry/core`. */
// eslint-disable-next-line deprecation/deprecation