Skip to content

Commit

Permalink
setup prisma sentry integration
Browse files Browse the repository at this point in the history
  • Loading branch information
gmbronco committed Jan 10, 2025
1 parent e49364b commit 12103de
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/green-kiwis-return.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'backend': patch
---

setup prisma sentry integration
1 change: 1 addition & 0 deletions apps/worker/sentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const initWorkerSentry = () => {
environment: `worker-${env.DEPLOYMENT_ENV}`,
enabled: env.NODE_ENV === 'production',
integrations: [
Sentry.prismaIntegration(),
Sentry.captureConsoleIntegration({
levels: ['error', 'warn'],
}),
Expand Down
2 changes: 1 addition & 1 deletion prisma/schema/base.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

generator client {
provider = "prisma-client-js"
previewFeatures = ["prismaSchemaFolder"]
previewFeatures = ["prismaSchemaFolder", "tracing"]
binaryTargets = ["native", "linux-arm64-openssl-1.0.x"] //, "linux-arm64-openssl-3.0.x"]
}

Expand Down

0 comments on commit 12103de

Please sign in to comment.