We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e7175d commit 120deebCopy full SHA for 120deeb
packages/node/src/integrations/tracing/prisma.ts
@@ -88,7 +88,7 @@ export const prismaIntegration = defineIntegration(
88
89
// In Prisma v5.22+, the `db.system` attribute is automatically set
90
// On older versions, this is missing, so we add it here
91
- if (spanJSON.description === 'prisma:engine:db_query' && !spanJSON.data['db.system']) {
+ if (spanJSON.description === 'prisma:engine:db_query' && !spanJSON.data?.['db.system']) {
92
span.setAttribute('db.system', 'prisma');
93
}
94
});
0 commit comments