Skip to content

Commit 1782d80

Browse files
authored
fix(vercel-edge): Make breadcrumbs option optional in WinterCGFetch integration (#10785)
Right now it's not possible to use it as: ```js new Sentry.Integrations.WinterCGFetch({ shouldCreateSpanForRequest: (url) => { return !url.startsWith(`${process.env.NEXT_PUBLIC_SUPABASE_URL}/rest`); } }) ``` due to `breadcrubs` not being marked as optional. Instead of changing it to such, reuse already existing `Options` interface to keep it in sync with the integration itself.
1 parent 32e4eff commit 1782d80

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

+1-4
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,7 @@ export const WinterCGFetch = convertIntegrationFnToClass(
129129
INTEGRATION_NAME,
130130
winterCGFetchIntegration,
131131
) as IntegrationClass<Integration & { setupOnce: () => void }> & {
132-
new (options?: {
133-
breadcrumbs: boolean;
134-
shouldCreateSpanForRequest?: (url: string) => boolean;
135-
}): Integration;
132+
new (options?: Partial<Options>): Integration;
136133
};
137134

138135
// eslint-disable-next-line deprecation/deprecation

0 commit comments

Comments
 (0)