Skip to content

Commit 120deeb

Browse files
author
Luca Forstner
committed
fix types
1 parent 6e7175d commit 120deeb

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
@@ -88,7 +88,7 @@ export const prismaIntegration = defineIntegration(
8888

8989
// In Prisma v5.22+, the `db.system` attribute is automatically set
9090
// On older versions, this is missing, so we add it here
91-
if (spanJSON.description === 'prisma:engine:db_query' && !spanJSON.data['db.system']) {
91+
if (spanJSON.description === 'prisma:engine:db_query' && !spanJSON.data?.['db.system']) {
9292
span.setAttribute('db.system', 'prisma');
9393
}
9494
});

0 commit comments

Comments
 (0)