-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
fix: Add missing supabaseIntegration docs for deno, cloudflare and react-native #15397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,6 +23,8 @@ supported: | |
| - javascript.react-router | ||
| - javascript.astro | ||
| - javascript.bun | ||
| - javascript.deno | ||
| - javascript.cloudflare | ||
| - javascript.tanstackstart-react | ||
| --- | ||
|
|
||
|
|
@@ -40,15 +42,13 @@ You need to have both the Sentry SDK and the Supabase library installed. For Sup | |
| This is the preferred method for most use cases. and follows Sentry's standard integration pattern. | ||
|
|
||
| ```javascript | ||
| import * as Sentry from '@sentry/browser'; | ||
| import { createClient } from '@supabase/supabase-js'; | ||
|
|
||
| const supabaseClient = createClient('YOUR_SUPABASE_URL', 'YOUR_SUPABASE_KEY'); | ||
|
|
||
| Sentry.init({ | ||
| dsn: 'YOUR_DSN', | ||
| integrations: [ | ||
| Sentry.browserTracingIntegration(), | ||
| Sentry.supabaseIntegration({ supabaseClient }) | ||
| ], | ||
| tracesSampleRate: 1.0, | ||
|
Comment on lines
49
to
54
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: Supabase integration documentation code example is missing the 🔍 Detailed AnalysisThe code example for Supabase integration in 💡 Suggested FixRestore the 🤖 Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not needed to showcase how to setup the supabase integration. |
||
|
|
@@ -108,4 +108,4 @@ The integration automatically: | |
|
|
||
| ## Supported Versions | ||
|
|
||
| - `@supabase/supabase-js`: `>=2.0.0` | ||
| - `@supabase/supabase-js`: `>=2.0.0` | ||
This comment was marked as outdated.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine, we just want to show how the integration should be added to any Sentry.init call.