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
feat(js): Update docs for prisma integration (#14876)
Once getsentry/sentry-javascript#17595 is merged
support will be even better, but even today passing the
`prismaInstrumentation` will actually fail, so not doing it is better
even if some spans are missing.
Also updating the docs to reflect that this is enabled by default now.
Copy file name to clipboardExpand all lines: docs/platforms/javascript/common/configuration/integrations/prisma.mdx
+7-22Lines changed: 7 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Prisma
3
-
description: "Adds instrumentation for Prisma."
3
+
description: "Adds instrumentation for Prisma. (default)"
4
4
supported:
5
5
- javascript.node
6
6
- javascript.aws-lambda
@@ -36,13 +36,13 @@ Sentry supports tracing [Prisma ORM](https://www.prisma.io/) queries with the Pr
36
36
37
37
The Prisma Integrations creates a spans for each query and reports to Sentry with relevant details inside the`description` if available.
38
38
39
-
This integration is enabled by default when using Prisma version 6 or higher.
40
-
When using Prisma version 5 this integration requires additional setup, which you can read about below.
39
+
This integration is enabled by default and supports Prisma versions 5 & 6. In Prisma v5, you need to follow the instructions below to enable tracing.
40
+
41
41
If you'd like to learn how to modify your default integrations, visit the docs on <PlatformLinkto="/configuration/integrations/#modifying-default-integrations">Modifying Default Integrations</PlatformLink>.
42
42
43
43
## Prisma Version >=6
44
44
45
-
To use the integration with Prisma version >=6, add the `prismaIntegration` to your Sentry initialization as follows:
45
+
To use the integration with Prisma version >=6, no configuration is required - tracing in Prisma v6 is enabled by default.
46
46
47
47
```javascript {3}
48
48
Sentry.init({
@@ -62,30 +62,15 @@ generator client {
62
62
}
63
63
```
64
64
65
-
For Prisma version 5 compatibility you must pass a specific version of the Prisma instrumentation to the Sentry Prisma integration. Add the `prismaIntegration` to your Sentry initialization as follows:
0 commit comments