Skip to content

Commit 59432b8

Browse files
andreiborzaalwx
andauthored
fix: Add missing supabaseIntegration docs for deno, cloudflare and react-native (#15397)
## DESCRIBE YOUR PR Exposes the `supabaseIntegration` docs for deno, cloudflare and react-native. Also cleaned up the snippet to not be browser-specific. ## IS YOUR CHANGE URGENT? Help us prioritize incoming PRs by letting us know when the change needs to go live. - [ ] Urgent deadline (GA date, etc.): <!-- ENTER DATE HERE --> - [ ] Other deadline: <!-- ENTER DATE HERE --> - [ ] None: Not urgent, can wait up to 1 week+ ## SLA - Teamwork makes the dream work, so please add a reviewer to your PRs. - Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it. Thanks in advance for your help! ## PRE-MERGE CHECKLIST *Make sure you've checked the following before merging your changes:* - [ ] Checked Vercel preview for correctness, including links - [ ] PR was reviewed and approved by any necessary SMEs (subject matter experts) - [ ] PR was reviewed and approved by a member of the [Sentry docs team](https://github.com/orgs/getsentry/teams/docs) ## LEGAL BOILERPLATE <!-- Sentry employees and contractors can delete or ignore this section. --> Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms. ## EXTRA RESOURCES - [Sentry Docs contributor guide](https://docs.sentry.io/contributing/) Closes: #15396 --------- Co-authored-by: Alexander Pantiukhov <[email protected]>
1 parent 39a9c5d commit 59432b8

File tree

3 files changed

+32
-3
lines changed

3 files changed

+32
-3
lines changed

docs/platforms/javascript/common/configuration/integrations/supabase.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ supported:
2323
- javascript.react-router
2424
- javascript.astro
2525
- javascript.bun
26+
- javascript.deno
27+
- javascript.cloudflare
2628
- javascript.tanstackstart-react
2729
---
2830

@@ -40,15 +42,13 @@ You need to have both the Sentry SDK and the Supabase library installed. For Sup
4042
This is the preferred method for most use cases. and follows Sentry's standard integration pattern.
4143

4244
```javascript
43-
import * as Sentry from '@sentry/browser';
4445
import { createClient } from '@supabase/supabase-js';
4546

4647
const supabaseClient = createClient('YOUR_SUPABASE_URL', 'YOUR_SUPABASE_KEY');
4748

4849
Sentry.init({
4950
dsn: 'YOUR_DSN',
5051
integrations: [
51-
Sentry.browserTracingIntegration(),
5252
Sentry.supabaseIntegration({ supabaseClient })
5353
],
5454
tracesSampleRate: 1.0,
@@ -108,4 +108,4 @@ The integration automatically:
108108

109109
## Supported Versions
110110

111-
- `@supabase/supabase-js`: `>=2.0.0`
111+
- `@supabase/supabase-js`: `>=2.0.0`

docs/platforms/react-native/integrations/plugin.mdx

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,31 @@ We'll use `bundles/bundle1.js` as an example full path to your file for the tabl
9999
| `RewriteFrames()` | `app:///bundle1.js` | The default behavior is to replace the absolute path, minus the filename, and add the default prefix (`app:///`). |
100100
| `RewriteFrames({root: '/bundles'})` | `app:///bundle1.js` | The `root` is defined as `/bundles`. Only that part is trimmed from the beginning of the path. |
101101
| `RewriteFrames({iteratee: () => {} })` | `app:///bundle.js` | The number at the end of a bundle can be a file hash. This is common in Expo apps. You can remove it in the `iteratee` callback. |
102+
103+
### Supabase
104+
105+
_Import name: `Sentry.supabaseIntegration`_
106+
107+
The `supabaseIntegration` adds instrumentation for the Supabase client to capture spans for both authentication and database operations.
108+
109+
You need to have both the Sentry React Native SDK and the Supabase library installed. For Supabase installation instructions, refer to the [Supabase JavaScript documentation](https://supabase.com/docs/reference/javascript/introduction).
110+
111+
#### Configuration
112+
113+
This is the preferred method for most use cases. and follows Sentry's standard integration pattern.
114+
115+
```javascript
116+
import * as Sentry from "@sentry/react-native";
117+
import { createClient } from '@supabase/supabase-js';
118+
119+
const supabaseClient = createClient('YOUR_SUPABASE_URL', 'YOUR_SUPABASE_KEY');
120+
121+
Sentry.init({
122+
dsn: "___PUBLIC_DSN___",
123+
integrations: [
124+
Sentry.supabaseIntegration({ supabaseClient })
125+
],
126+
});
127+
```
128+
129+
For more information, please refer to [the Supabase integration documentation for the JavaScript SDK](/platforms/javascript/configuration/integrations/supabase/).

platform-includes/configuration/integrations/javascript.cloudflare.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@
1111
| [`captureConsoleIntegration`](./captureconsole) | | | | ||
1212
| [`extraErrorDataIntegration`](./extraerrordata) | | | | ||
1313
| [`rewriteFramesIntegration`](./rewriteframes) | || | | |
14+
| [`supabaseIntegration`](./supabase) | ||| | |
1415
| [`honoIntegration`](./hono) ||| | | |

0 commit comments

Comments
 (0)