mirror of
https://github.com/supabase/supabase.git
synced 2026-10-10 20:05:06 +03:00
Update sentry-monitoring.mdx (#27206)
This commit is contained in:
1 parent
3c6c3db48f
commit
ced7214628
1 file changed
+6
-6
@@ -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`)
|
||||
},
|
||||
}),
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user