You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/platforms/javascript/common/configuration/integrations/prisma.mdx
+34-3
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ supported:
24
24
25
25
<Alert>
26
26
27
-
This integration only works in the Node.js and Bun runtimes. This integration only supports Prisma v5 at the current time. If you're interested in Prisma v6 support, please leave your thoughts on the [Prisma v6 tracking issue for the Sentry SDK](https://github.com/getsentry/sentry-javascript/issues/14793).
27
+
This integration only works in the Node.js and Bun runtimes.
28
28
29
29
</Alert>
30
30
@@ -34,7 +34,31 @@ Sentry supports tracing [Prisma ORM](https://www.prisma.io/) queries with the Pr
34
34
35
35
The Prisma Integrations creates a spans for each query and reports to Sentry with relevant details inside `description` if available.
36
36
37
-
To install the integration, first enable the `tracing` feature flag in the `generator` block of your Prisma schema:
37
+
## Prisma Version 6
38
+
39
+
The Sentry Prisma Integration comes with Prisma version 5 support by default. For Prisma version 6 compatibility we need to pass a specific version of the Prisma instrumentation to the Sentry Prisma integration.
40
+
41
+
To use the integration with Prisma version 6, first install the `@prisma/instrumentation` package on version 6 (ideally the exact same version as your `prisma` and `@prisma/client` packages).
42
+
43
+
Then, add the `prismaIntegration` to your Sentry initialization as follows:
0 commit comments