Prisma

Adds instrumentation for Prisma.

Import name: Sentry.prismaIntegration

Sentry supports tracing Prisma ORM queries with the Prisma integration.

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

To install the integration, first enable the tracing feature flag in the generator block of your Prisma schema:

schema.prisma
Copied
generator client {
  provider        = "prisma-client-js"
  previewFeatures = ["tracing"]
}

Then, add the prismaIntegration to your Sentry initialization as follows:

Copied
Sentry.init({
  tracesSampleRate: 1.0,
  integrations: [Sentry.prismaIntegration()],
});
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").