Skip to content
Closed
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,32 @@ You need to have both the Sentry SDK and the Supabase library installed. For Sup

## Configuration

This is the preferred method for most use cases. and follows Sentry's standard integration pattern.
This is the preferred method for most use cases and follows Sentry's standard integration pattern.

### Imports

<PlatformSection supported={["javascript.deno"]}>

```javascript
// Import Sentry from npm and ensure it appears before other imports
import * as Sentry from 'npm:@sentry/deno';
import { createClient } from 'npm:@supabase/supabase-js';
```

</PlatformSection>

<PlatformSection notSupported={["javascript.deno"]}>

```javascript
import * as Sentry from "___SDK_PACKAGE___";
import { createClient } from '@supabase/supabase-js';
```

</PlatformSection>

### Initialize

```javascript
const supabaseClient = createClient('YOUR_SUPABASE_URL', 'YOUR_SUPABASE_KEY');

Sentry.init({
Expand All @@ -55,6 +76,10 @@ Sentry.init({
});
```

<Note>
For Deno, always place the `npm:@sentry/deno` import before other imports so instrumentation can attach correctly.
</Note>
Comment thread
sentry[bot] marked this conversation as resolved.
Outdated

## Generated Spans

The integration provides comprehensive monitoring for both authentication and database operations:
Expand Down
Loading