Skip to content

WinterCGFetch | Sentry for Next.js

Source URL: https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/integrations/wintercgfetch

This integration only works in the Edge runtime.

Import name: Sentry.winterCGFetchIntegration

This integration is enabled by default. If you’d like to modify your default integrations, read this.

The winterCGFetchIntegration creates spans and attaches tracing headers to fetch requests on the Edge runtime.

Sentry.init({
integrations: [Sentry.winterCGFetchIntegration()],
});

Type: boolean

If set to false, no breadcrumbs will be captured.

Type: (url: string) => boolean

Allows you to define a method to determine whether or not to create spans to track outgoing requests to the given URL. By default, spans will be created for all outgoing requests.