Skip to content

Commit f1f0924

Browse files
authored
Revert "feat: Require use of flag to send envelopes (getsentry#2594)" (getsentry#2612)
This reverts commit 0d9725a.
1 parent 2a0cd7a commit f1f0924

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/core/src/request.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { getCurrentHub } from '@sentry/hub';
21
import { Event } from '@sentry/types';
32
import { timestampWithMs } from '@sentry/utils';
43

@@ -17,9 +16,7 @@ interface SentryRequest {
1716

1817
/** Creates a SentryRequest from an event. */
1918
export function eventToSentryRequest(event: Event, api: API): SentryRequest {
20-
const client = getCurrentHub().getClient();
21-
const experimentsOptions = (client && client.getOptions()._experiments) || {};
22-
const useEnvelope = event.type === 'transaction' && experimentsOptions.useEnvelope;
19+
const useEnvelope = event.type === 'transaction';
2320

2421
const req: SentryRequest = {
2522
body: JSON.stringify(event),

0 commit comments

Comments
 (0)