Skip to content

Commit 26400e4

Browse files
committed
chore(prisma): document resource attribute types
1 parent a7f4331 commit 26400e4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • packages/datadog-plugin-prisma/src

packages/datadog-plugin-prisma/src/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ class PrismaPlugin extends DatabasePlugin {
125125
}
126126
}
127127

128+
/**
129+
* @param {string} resource
130+
* @param {{ name?: string, model?: string, method?: string }} [attributes]
131+
*/
128132
function formatResourceName (resource, attributes) {
129133
if (attributes?.name) {
130134
return attributes.name.trim()

0 commit comments

Comments
 (0)