Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

add prisma client to sentry

Max Deichmann83a819d8325f
diff --git a/sentry.server.config.ts b/sentry.server.config.ts
index 9320ac3adc..4002bed1e9 100644
--- a/sentry.server.config.ts
+++ b/sentry.server.config.ts
@@ -1,3 +1,4 @@
+import { prisma } from "@/src/server/db";
import * as Sentry from "@sentry/nextjs";
import { ProfilingIntegration } from "@sentry/profiling-node";
@@ -18,6 +19,7 @@ if (process.env.NEXT_PUBLIC_SENTRY_DSN)
integrations: [
// Add profiling integration to list of integrations
new ProfilingIntegration(),
+ new Sentry.Integrations.Prisma({ client: prisma }),
],
// ...