Skip to content

Commit c6b09b8

Browse files
committed
fix
1 parent 283c40a commit c6b09b8

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
@@ -31,7 +31,7 @@ const _prismaIntegration = (() => {
3131

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

0 commit comments

Comments
 (0)