diff --git a/apps/docs/content/guides/platform/sentry-monitoring.mdx b/apps/docs/content/guides/platform/sentry-monitoring.mdx index b64cb0d9512..1f0673908cf 100644 --- a/apps/docs/content/guides/platform/sentry-monitoring.mdx +++ b/apps/docs/content/guides/platform/sentry-monitoring.mdx @@ -129,16 +129,16 @@ Sentry.init({ // or @sentry/node Sentry.httpIntegration({ tracing: { - shouldCreateSpanForRequest: (url) => { - return !url.startsWith(`${SUPABASE_URL}/rest`) + ignoreOutgoingRequests: (url) => { + return url.startsWith(`${SUPABASE_URL}/rest`) }, }, }), // or @sentry/node with Fetch support Sentry.nativeNodeFetchIntegration({ - shouldCreateSpanForRequest: (url) => { - return !url.startsWith(`${SUPABASE_URL}/rest`) + ignoreOutgoingRequests: (url) => { + return url.startsWith(`${SUPABASE_URL}/rest`) }, }), @@ -175,9 +175,9 @@ Sentry.init({ errors: true, }), Sentry.nativeNodeFetchIntegration({ - shouldCreateSpanForRequest: (url) => { + ignoreOutgoingRequests: (url) => { console.log('server', `${process.env.NEXT_PUBLIC_SUPABASE_URL}/rest`, url) - return !url.startsWith(`${process.env.NEXT_PUBLIC_SUPABASE_URL}/rest`) + return url.startsWith(`${process.env.NEXT_PUBLIC_SUPABASE_URL}/rest`) }, }), ],