Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mydea committed Nov 22, 2023
1 parent 279671c commit 8f368db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vercel-edge/src/integrations/wintercg-fetch.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { instrumentFetchRequest } from '@sentry-internal/tracing';
import { getCurrentHub, isSentryRequestUrl } from '@sentry/core';
import type { FetchBreadcrumbData, FetchBreadcrumbHint, HandlerDataFetch, Integration, Span } from '@sentry/types';
import { addInstrumentationHandler, LRUMap, stringMatchesSomePattern } from '@sentry/utils';
import { addFetchInstrumentationHandler, LRUMap, stringMatchesSomePattern } from '@sentry/utils';

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

addInstrumentationHandler('fetch', (handlerData: HandlerDataFetch) => {
addFetchInstrumentationHandler(handlerData => {
const hub = getCurrentHub();
if (!hub.getIntegration(WinterCGFetch)) {
return;
Expand Down

0 comments on commit 8f368db

Please sign in to comment.