Opt-in
(Available from 8.0.0
)
Sentry supports tracing Prisma ORM fetchers with the Prisma integration.
Prisma integration creates a db.prisma
span for each query and reports to Sentry with relevant details inside description
if available.
For example:
Copied
const Sentry = require('@sentry/node');
Sentry.init({
dsn: https://examplePublicKey@o0.ingest.sentry.io/0,
tracesSampleRate: 1.0,
integrations: [Sentry.prismaIntegration()],
});
const {PrismaClient} = require('@prisma/client');
const client = new PrismaClient();
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").
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").