Skip to content

Commit 4e903d4

Browse files
committed
fix
1 parent 3caeadb commit 4e903d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/vercel-edge/src/integrations/wintercg-fetch.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { instrumentFetchRequest } from '@sentry-internal/tracing';
22
import { getCurrentHub, isSentryRequestUrl } from '@sentry/core';
33
import type { FetchBreadcrumbData, FetchBreadcrumbHint, HandlerDataFetch, Integration, Span } from '@sentry/types';
4-
import { addInstrumentationHandler, LRUMap, stringMatchesSomePattern } from '@sentry/utils';
4+
import { addFetchInstrumentationHandler, LRUMap, stringMatchesSomePattern } from '@sentry/utils';
55

66
export interface Options {
77
/**
@@ -48,7 +48,7 @@ export class WinterCGFetch implements Integration {
4848
public setupOnce(): void {
4949
const spans: Record<string, Span> = {};
5050

51-
addInstrumentationHandler('fetch', (handlerData: HandlerDataFetch) => {
51+
addFetchInstrumentationHandler(handlerData => {
5252
const hub = getCurrentHub();
5353
if (!hub.getIntegration(WinterCGFetch)) {
5454
return;

0 commit comments

Comments
 (0)