Skip to content

feat: Add note that prisma is enabled by default #13628

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

Merged
merged 4 commits into from
May 8, 2025
Merged
Show file tree
Hide file tree
Changes from all 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 @@ -36,9 +36,13 @@ Sentry supports tracing [Prisma ORM](https://www.prisma.io/) queries with the Pr

The Prisma Integrations creates a spans for each query and reports to Sentry with relevant details inside the`description` if available.

## Prisma Version 6
This integration is enabled by default when using Prisma version 6 or higher.
When using Prisma version 5 this integration requires additional setup, which you can read about below.
If you'd like to learn how to modify your default integrations, visit the docs on <PlatformLink to="/configuration/integrations/#modifying-default-integrations">Modifying Default Integrations</PlatformLink>.

To use the integration with Prisma version 6, add the `prismaIntegration` to your Sentry initialization as follows:
## Prisma Version >=6

To use the integration with Prisma version >=6, add the `prismaIntegration` to your Sentry initialization as follows:

```javascript {3}
Sentry.init({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Depending on whether an integration enhances the functionality of a particular r
| [`replayIntegration`](./replay) | | | | ✓ | ✓ |
| [`reportingObserverIntegration`](./reportingobserver) | | ✓ | | | |
| [`statsigIntegration`](./statsig) | | | | | ✓ |
| [`supabaseIntegration`](./supabase) | | ✓ | ✓ | | |
| [`supabaseIntegration`](./supabase) | | ✓ | ✓ | | |
| [`unleashIntegration`](./unleash) | | | | | ✓ |

### Node.js Integrations
Expand Down Expand Up @@ -70,11 +70,11 @@ Depending on whether an integration enhances the functionality of a particular r
| [`tediousIntegration`](./tedious) | ✓ | | ✓ | |
| [`childProcessIntegration`](./childProcess) | ✓ | | | ✓ |
| [`dataloaderIntegration`](./dataloader) | ✓ | | ✓ | |
| [`prismaIntegration`](./prisma) | ✓ | | ✓ | |
| [`anrIntegration`](./anr) | | ✓ | | |
| [`extraErrorDataIntegration`](./extraerrordata) | | | | ✓ |
| [`fsIntegration`](./fs) | | | ✓ | |
| [`knexIntegration`](./knex) | | | ✓ | |
| [`localVariablesIntegration`](./localvariables) | | ✓ | | |
| [`nodeProfilingIntegration`](./nodeprofiling) | | | ✓ | |
| [`prismaIntegration`](./prisma) | | | ✓ | |
| [`trpcMiddleware`](./trpc) | | ✓ | ✓ | ✓ |
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
### Integrations

| | **Auto Enabled** | **Errors** | **Tracing** | **Additional Context** |
| --------------------------------------------------------- | :--------------: | :--------: | :---------: | :--------------------: |
| --------------------------------------------------------- | :--------------: | :--------: | :---------: | :--------------------: | --- |
| [`amqplibIntegration`](./amqplib) | ✓ | | ✓ | |
| [`bunServerIntegration`](./bunserver) | ✓ | ✓ | ✓ | |
| [`consoleIntegration`](./console) | ✓ | | | ✓ |
Expand All @@ -28,11 +28,11 @@
| [`redisIntegration`](./redis) | ✓ | | ✓ | |
| [`requestDataIntegration`](./requestdata) | ✓ | | ✓ | |
| [`tediousIntegration`](./tedious) | ✓ | | ✓ | |
| [`prismaIntegration`](./prisma) | ✓ | | ✓ | |
| [`captureConsoleIntegration`](./captureconsole) | | | | ✓ |
| [`dataloaderIntegration`](./dataloader) | | | ✓ | |
| [`extraErrorDataIntegration`](./extraerrordata) | | | | ✓ |
| [`knexIntegration`](./knex) | | | ✓ | |
| [`prismaIntegration`](./prisma) | | | ✓ | |
| [`rewriteFramesIntegration`](./rewriteframes) | | ✓ | | |
| [`supabaseIntegration`](./supabase) | | ✓ | ✓ | | |
| [`supabaseIntegration`](./supabase) | | ✓ | ✓ | | |
| [`trpcMiddleware`](./trpc) | | ✓ | ✓ | ✓ |
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
| [`requestDataIntegration`](./requestdata) | ✓ | | ✓ | |
| [`tediousIntegration`](./tedious) | ✓ | | ✓ | |
| [`childProcessIntegration`](./childProcess) | ✓ | | | ✓ |
| [`rewriteFramesIntegration`](./rewriteframes) | ✓ | ✓ | | |
| [`anrIntegration`](./anr) | | ✓ | | |
| [`captureConsoleIntegration`](./captureconsole) | | | | ✓ |
| [`dataloaderIntegration`](./dataloader) | | | ✓ | |
Expand All @@ -38,5 +39,4 @@
| [`localVariablesIntegration`](./localvariables) | | ✓ | | |
| [`nodeProfilingIntegration`](./nodeprofiling) | | | ✓ | |
| [`prismaIntegration`](./prisma) | | | ✓ | |
| [`rewriteFramesIntegration`](./rewriteframes) | | ✓ | | |
| [`trpcMiddleware`](./trpc) | | ✓ | ✓ | ✓ |
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
### Integrations

| | **Auto Enabled** | **Errors** | **Tracing** | **Additional Context** |
| --------------------------------------------------------- | :--------------: | :--------: | :---------: | :--------------------: |
| --------------------------------------------------------- | :--------------: | :--------: | :---------: | :--------------------: | --- |
| [`amqplibIntegration`](./amqplib) | ✓ | | ✓ | |
| [`consoleIntegration`](./console) | ✓ | | | ✓ |
| [`contextLinesIntegration`](./contextlines) | ✓ | ✓ | | |
Expand Down Expand Up @@ -29,6 +29,7 @@
| [`requestDataIntegration`](./requestdata) | ✓ | | ✓ | |
| [`tediousIntegration`](./tedious) | ✓ | | ✓ | |
| [`childProcessIntegration`](./childProcess) | ✓ | | | ✓ |
| [`prismaIntegration`](./prisma) | ✓ | | ✓ | |
| [`anrIntegration`](./anr) | | ✓ | | |
| [`captureConsoleIntegration`](./captureconsole) | | | | ✓ |
| [`dataloaderIntegration`](./dataloader) | | | ✓ | |
Expand All @@ -37,7 +38,6 @@
| [`knexIntegration`](./knex) | | | ✓ | |
| [`localVariablesIntegration`](./localvariables) | | ✓ | | |
| [`nodeProfilingIntegration`](./nodeprofiling) | | | ✓ | |
| [`prismaIntegration`](./prisma) | | | ✓ | |
| [`rewriteFramesIntegration`](./rewriteframes) | | ✓ | | |
| [`supabaseIntegration`](./supabase) | | ✓ | ✓ | | |
| [`trpcMiddleware`](./trpc) | | ✓ | ✓ | ✓ |
| [`supabaseIntegration`](./supabase) | | ✓ | ✓ | | |
| [`trpcMiddleware`](./trpc) | | ✓ | ✓ | ✓ |
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
### Integrations

| | **Auto Enabled** | **Errors** | **Tracing** | **Additional Context** |
| --------------------------------------------------------- | :--------------: | :--------: | :---------: | :--------------------: |
| --------------------------------------------------------- | :--------------: | :--------: | :---------: | :--------------------: | --- |
| [`amqplibIntegration`](./amqplib) | ✓ | | ✓ | |
| [`consoleIntegration`](./console) | ✓ | | | ✓ |
| [`contextLinesIntegration`](./contextlines) | ✓ | ✓ | | |
Expand Down Expand Up @@ -29,6 +29,7 @@
| [`requestDataIntegration`](./requestdata) | ✓ | | ✓ | |
| [`tediousIntegration`](./tedious) | ✓ | | ✓ | |
| [`childProcessIntegration`](./childProcess) | ✓ | | | ✓ |
| [`prismaIntegration`](./prisma) | ✓ | | ✓ | |
| [`anrIntegration`](./anr) | | ✓ | | |
| [`captureConsoleIntegration`](./captureconsole) | | | | ✓ |
| [`dataloaderIntegration`](./dataloader) | | | ✓ | |
Expand All @@ -37,7 +38,6 @@
| [`knexIntegration`](./knex) | | | ✓ | |
| [`localVariablesIntegration`](./localvariables) | | ✓ | | |
| [`nodeProfilingIntegration`](./nodeprofiling) | | | ✓ | |
| [`prismaIntegration`](./prisma) | | | ✓ | |
| [`rewriteFramesIntegration`](./rewriteframes) | | ✓ | | |
| [`supabaseIntegration`](./supabase) | | ✓ | ✓ | | |
| [`supabaseIntegration`](./supabase) | | ✓ | ✓ | | |
| [`trpcMiddleware`](./trpc) | | ✓ | ✓ | ✓ |
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
### Integrations

| | **Auto Enabled** | **Errors** | **Tracing** | **Additional Context** |
| --------------------------------------------------------- | :--------------: | :--------: | :---------: | :--------------------: |
| --------------------------------------------------------- | :--------------: | :--------: | :---------: | :--------------------: | --- |
| [`amqplibIntegration`](./amqplib) | ✓ | | ✓ | |
| [`consoleIntegration`](./console) | ✓ | | | ✓ |
| [`contextLinesIntegration`](./contextlines) | ✓ | ✓ | | |
Expand Down Expand Up @@ -29,6 +29,7 @@
| [`requestDataIntegration`](./requestdata) | ✓ | | ✓ | |
| [`tediousIntegration`](./tedious) | ✓ | | ✓ | |
| [`childProcessIntegration`](./childProcess) | ✓ | | | ✓ |
| [`prismaIntegration`](./prisma) | ✓ | | ✓ | |
| [`anrIntegration`](./anr) | | ✓ | | |
| [`captureConsoleIntegration`](./captureconsole) | | | | ✓ |
| [`dataloaderIntegration`](./dataloader) | | | ✓ | |
Expand All @@ -37,8 +38,7 @@
| [`knexIntegration`](./knex) | | | ✓ | |
| [`localVariablesIntegration`](./localvariables) | | ✓ | | |
| [`nodeProfilingIntegration`](./nodeprofiling) | | | ✓ | |
| [`prismaIntegration`](./prisma) | | | ✓ | |
| [`rewriteFramesIntegration`](./rewriteframes) | | ✓ | | |
| [`supabaseIntegration`](./supabase) | | ✓ | ✓ | | |
| [`supabaseIntegration`](./supabase) | | ✓ | ✓ | | |
| [`trpcMiddleware`](./trpc) | | ✓ | ✓ | ✓ |
| [`unleashIntegration`](./unleash) | | | | | |
| [`unleashIntegration`](./unleash) | | | | | ✓ |
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Depending on whether an integration enhances the functionality of a particular r
| [`replayIntegration`](./replay) | | | | ✓ | ✓ |
| [`reportingObserverIntegration`](./reportingobserver) | | ✓ | | | |
| [`statsigIntegration`](./statsig) | | | | | ✓ |
| [`supabaseIntegration`](./supabase) | | ✓ | ✓ | | |
| [`supabaseIntegration`](./supabase) | | ✓ | ✓ | | |
| [`unleashIntegration`](./unleash) | | | | | ✓ |

### Server (Node.js, Edge) Integrations
Expand Down Expand Up @@ -76,13 +76,13 @@ Depending on whether an integration enhances the functionality of a particular r
| [`tediousIntegration`](./tedious) | ✓ | | ✓ | |
| [`dataloaderIntegration`](./dataloader) | ✓ | | ✓ | |
| [`childProcessIntegration`](./childProcess) | ✓ | | | ✓ |
| [`prismaIntegration`](./prisma) | ✓ | | ✓ | |
| [`anrIntegration`](./anr) | | ✓ | | |
| [`extraErrorDataIntegration`](./extraerrordata) | | | | ✓ |
| [`fsIntegration`](./fs) | | | ✓ | |
| [`knexIntegration`](./knex) | | | ✓ | |
| [`localVariablesIntegration`](./localvariables) | | ✓ | | |
| [`nodeProfilingIntegration`](./nodeprofiling) | | | ✓ | |
| [`prismaIntegration`](./prisma) | | | ✓ | |
| [`trpcMiddleware`](./trpc) | | ✓ | ✓ | ✓ |

### Edge Integrations
Expand Down
Loading