Skip to content

Commit

Permalink
docs: Use ignoreOutgoingRequests instead of shouldCreateSpanForRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilogorek authored Jun 12, 2024
1 parent bbef8f0 commit 114471f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,16 +111,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`);
},
}),

Expand Down Expand Up @@ -200,13 +200,13 @@ 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`);
},
}),
],
Expand Down

0 comments on commit 114471f

Please sign in to comment.