Skip to content

Commit 8d5c407

Browse files
committed
ref(core)!: Remove supportsNativeFetch export
1 parent 35404f3 commit 8d5c407

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

packages/browser/src/integrations/httpclient.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {
1010
getClient,
1111
GLOBAL_OBJ,
1212
isSentryRequestUrl,
13-
supportsNativeFetch,
1413
} from '@sentry/core/browser';
1514
import type { SentryWrappedXMLHttpRequest } from '@sentry/browser-utils';
1615
import { addXhrInstrumentationHandler, SENTRY_XHR_DATA_KEY } from '@sentry/browser-utils';
@@ -282,10 +281,6 @@ function _isInGivenStatusRanges(
282281
* Wraps `fetch` function to capture request and response data
283282
*/
284283
function _wrapFetch(client: Client, options: HttpClientOptions): void {
285-
if (!supportsNativeFetch()) {
286-
return;
287-
}
288-
289284
addFetchInstrumentationHandler(handlerData => {
290285
if (getClient() !== client) {
291286
return;

packages/core/src/browser-exports.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,5 @@ export { startIdleSpan } from './tracing/idleSpan';
1515

1616
export { spanStreamingIntegration } from './integrations/browserSpanStreaming';
1717

18-
export { supportsNativeFetch } from './utils/supports';
1918
export type { XhrBreadcrumbData, XhrBreadcrumbHint } from './types/breadcrumb';
2019
export type { BrowserClientReplayOptions } from './types/browseroptions';

0 commit comments

Comments
 (0)