We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a0cd7a commit f1f0924Copy full SHA for f1f0924
packages/core/src/request.ts
@@ -1,4 +1,3 @@
1
-import { getCurrentHub } from '@sentry/hub';
2
import { Event } from '@sentry/types';
3
import { timestampWithMs } from '@sentry/utils';
4
@@ -17,9 +16,7 @@ interface SentryRequest {
17
16
18
/** Creates a SentryRequest from an event. */
19
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;
+ const useEnvelope = event.type === 'transaction';
23
24
const req: SentryRequest = {
25
body: JSON.stringify(event),
0 commit comments