Skip to content

Commit

Permalink
fix: row count only for read
Browse files Browse the repository at this point in the history
  • Loading branch information
sjvans authored Jan 23, 2025
1 parent 67933be commit 1da7d0f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/tracing/trace.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,13 @@ const _addDbRowCount = (span, res) => {

let rowCount
switch (span.attributes['db.operation']) {
/*
case 'DELETE':
case 'UPDATE':
case 'CREATE':
rowCount = res.changes
break
*/
case 'READ':
rowCount = res.length ?? 1
}
Expand Down

0 comments on commit 1da7d0f

Please sign in to comment.