Skip to content
Closed
Changes from 2 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,9 +39,12 @@ 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.

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

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

const supabaseClient = createClient('YOUR_SUPABASE_URL', 'YOUR_SUPABASE_KEY');
Expand All @@ -55,6 +58,29 @@ Sentry.init({
});
```

</PlatformSection>

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

In Deno, import the Sentry SDK from the npm registry **before** any other imports to ensure it can instrument your application correctly:

```javascript
import * as Sentry from 'npm:@sentry/deno';
import { createClient } from 'npm:@supabase/supabase-js';

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

Sentry.init({
dsn: 'YOUR_DSN',
integrations: [
Sentry.supabaseIntegration({ supabaseClient })
],
tracesSampleRate: 1.0,
});
```

</PlatformSection>
Comment thread
cursor[bot] marked this conversation as resolved.
Outdated

## Generated Spans

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