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 283c40a commit c6b09b8Copy full SHA for c6b09b8
packages/node/src/integrations/tracing/prisma.ts
@@ -31,7 +31,7 @@ const _prismaIntegration = (() => {
31
32
// In Prisma v5.22+, the `db.system` attribute is automatically set
33
// On older versions, this is missing, so we add it here
34
- if (spanJSON.description === 'prisma:engine:db_query' && !spanJSON.data['db.system']) {
+ if (spanJSON.description === 'prisma:engine:db_query' && !spanJSON.data?.['db.system']) {
35
span.setAttribute('db.system', 'prisma');
36
}
37
});
0 commit comments