Update sentry-monitoring.mdx (#27206)

This commit is contained in:
Kamil Ogórek authored and GitHub committed 2024-06-12 09:31:48 -04:00
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`)
},
}),
],