We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
@prisma/instrumentation
1 parent 186e982 commit 8fa393cCopy full SHA for 8fa393c
packages/node/src/integrations/tracing/prisma.ts
@@ -8,9 +8,14 @@ const _prismaIntegration = (() => {
8
return {
9
name: 'Prisma',
10
setupOnce() {
11
+ const EsmInteropPrismaInstrumentation: typeof prismaInstrumentation.PrismaInstrumentation =
12
+ // @ts-expect-error We need to do the following for interop reasons
13
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
14
+ prismaInstrumentation.default?.PrismaInstrumentation || prismaInstrumentation.PrismaInstrumentation;
15
+
16
addOpenTelemetryInstrumentation(
17
// does not have a hook to adjust spans & add origin
- new prismaInstrumentation.PrismaInstrumentation({}),
18
+ new EsmInteropPrismaInstrumentation({}),
19
);
20
},
21
0 commit comments