From ea9bd464450bb7933f2106ee48ffb6286f2b05c4 Mon Sep 17 00:00:00 2001 From: Daniel Griesser Date: Mon, 25 May 2020 13:27:19 +0200 Subject: [PATCH] Revert "feat: Require use of flag to send envelopes (#2594)" This reverts commit 0d9725a4048f9b271521410b8839cea3938c76a4. --- packages/core/src/request.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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),