Skip to content

Commit 290bbc2

Browse files
authored
fix(Prisma): update span description for Prisma v7+
1 parent 94cb94f commit 290bbc2

File tree

1 file changed

+1
-1
lines changed
  • packages/node/src/integrations/tracing

1 file changed

+1
-1
lines changed

packages/node/src/integrations/tracing/prisma.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ export const prismaIntegration = defineIntegration((options?: PrismaOptions) =>
225225
}
226226

227227
// Make sure we use the query text as the span name, for ex. SELECT * FROM "User" WHERE "id" = $1
228-
if (spanJSON.description === 'prisma:engine:db_query' && spanJSON.data['db.query.text']) {
228+
if ((spanJSON.description === 'prisma:engine:db_query' || spanJSON.description === 'prisma:client:db_query') && spanJSON.data['db.query.text']) {
229229
span.updateName(spanJSON.data['db.query.text'] as string);
230230
}
231231

0 commit comments

Comments
 (0)