Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Update sentry-monitoring.mdx (#28512)

Kamil Ogórek3aa92fbcbd86
diff --git a/apps/docs/content/guides/platform/sentry-monitoring.mdx b/apps/docs/content/guides/platform/sentry-monitoring.mdx
index 1f0673908cf..567955f92c1 100644
--- a/apps/docs/content/guides/platform/sentry-monitoring.mdx
+++ b/apps/docs/content/guides/platform/sentry-monitoring.mdx
@@ -174,10 +174,9 @@ Sentry.init({
breadcrumbs: true,
errors: true,
}),
- Sentry.nativeNodeFetchIntegration({
- ignoreOutgoingRequests: (url) => {
- console.log('server', `${process.env.NEXT_PUBLIC_SUPABASE_URL}/rest`, url)
- return url.startsWith(`${process.env.NEXT_PUBLIC_SUPABASE_URL}/rest`)
+ Sentry.browserTracingIntegration({
+ shouldCreateSpanForRequest: (url) => {
+ return !url.startsWith(`${process.env.NEXT_PUBLIC_SUPABASE_URL}/rest`)
},
}),
],
@@ -207,10 +206,10 @@ Sentry.init({
breadcrumbs: true,
errors: true,
}),
- Sentry.winterCGFetchIntegration({
+ Sentry.nativeNodeFetchIntegration({
breadcrumbs: true,
- shouldCreateSpanForRequest: (url) => {
- return !url.startsWith(`${process.env.NEXT_PUBLIC_SUPABASE_URL}/rest`)
+ ignoreOutgoingRequests: (url) => {
+ return url.startsWith(`${process.env.NEXT_PUBLIC_SUPABASE_URL}/rest`)
},
}),
],
@@ -229,17 +228,17 @@ Sentry.init({
```js sentry.edge.config.ts
import * as Sentry from '@sentry/nextjs'
import { SupabaseClient } from '@supabase/supabase-js'
-import { SupabaseIntegration } from '@supabase/sentry-js-integration'
+import { supabaseIntegration } from '@supabase/sentry-js-integration'
Sentry.init({
dsn: SENTRY_DSN,
integrations: [
- new SupabaseIntegration(SupabaseClient, {
+ supabaseIntegration(SupabaseClient, Sentry, {
tracing: true,
breadcrumbs: true,
errors: true,
}),
- new Sentry.Integrations.WinterCGFetch({
+ Sentry.winterCGFetchIntegration({
breadcrumbs: true,
shouldCreateSpanForRequest: (url) => {
return !url.startsWith(`${process.env.NEXT_PUBLIC_SUPABASE_URL}/rest`)