Skip to content
Merged
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,13 +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.

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.
This integration is enabled by default and supports Prisma versions 5, 6 & 7. In Prisma v5, you need to follow the instructions below to enable tracing.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The documentation incorrectly states that Prisma v5 is supported, but the Sentry SDK v9 migration guide confirms that support for Prisma v5 was dropped.
Severity: MEDIUM

Suggested Fix

Remove all references to Prisma v5 support from the prisma.mdx file. This includes updating the supported versions list to 6.x, 7.x and removing the "Prisma Version 5" section entirely to align with the breaking changes introduced in Sentry SDK v9.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: docs/platforms/javascript/common/configuration/integrations/prisma.mdx#L39

Potential issue: The changes to `prisma.mdx` introduce a contradiction with the official
v8-to-v9 migration guide. The updated documentation claims support for Prisma v5 and
provides configuration details for it. However, the migration guide explicitly states
that "Prisma version `5.x` and below are no longer supported" in SDK v9. Since
`prisma.mdx` represents the documentation for the latest SDK version, users following
these instructions for an SDK v9+ project will encounter runtime issues when their
configuration fails due to using an unsupported Prisma version.

Did we get this right? 👍 / 👎 to inform future reviews.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is partially true. We don't support it anymore, but it works theoretically. I'll leave it in as there is no harm in keeping it for now.


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>.

## Prisma Version >=6
## Prisma Version 6 & 7

To use the integration with Prisma version >=6, no configuration is required - tracing in Prisma v6 is enabled by default.
To use the integration with Prisma version 6 or 7, no configuration is required - tracing is enabled by default.

```javascript {3}
Sentry.init({
Expand Down Expand Up @@ -73,4 +73,4 @@ Sentry.init({

## Supported Versions

- `prisma`: `>=5`
- `prisma`: `5.x`, `6.x`, `7.x`