Skip to content

Commit b647d19

Browse files
committed
Fix Prisma instrumentation import to resolve type issues
1 parent fa9e597 commit b647d19

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

server/utils/monitoring.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
import { PrismaInstrumentation } from '@prisma/instrumentation'
1+
import prismaInstrumentation from '@prisma/instrumentation'
22
import * as Sentry from '@sentry/node'
33
import { nodeProfilingIntegration } from '@sentry/profiling-node'
44

5+
// prisma's exports are wrong...
6+
const { PrismaInstrumentation } = prismaInstrumentation
7+
58
export function init() {
69
Sentry.init({
710
dsn: process.env.SENTRY_DSN,

0 commit comments

Comments
 (0)