diff --git a/packages/core/src/request.ts b/packages/core/src/request.ts index 14933d5367d0..c5e09dc8fc34 100644 --- a/packages/core/src/request.ts +++ b/packages/core/src/request.ts @@ -1,4 +1,3 @@ -import { getCurrentHub } from '@sentry/hub'; import { Event } from '@sentry/types'; import { timestampWithMs } from '@sentry/utils'; @@ -17,9 +16,7 @@ interface SentryRequest { /** Creates a SentryRequest from an event. */ export function eventToSentryRequest(event: Event, api: API): SentryRequest { - const client = getCurrentHub().getClient(); - const experimentsOptions = (client && client.getOptions()._experiments) || {}; - const useEnvelope = event.type === 'transaction' && experimentsOptions.useEnvelope; + const useEnvelope = event.type === 'transaction'; const req: SentryRequest = { body: JSON.stringify(event),