Skip to content

Commit 318b3e6

Browse files
committed
fix(pg): add missing pg action
1 parent 2557cca commit 318b3e6

File tree

1 file changed

+1
-1
lines changed
  • lib/instrumentations

1 file changed

+1
-1
lines changed

lib/instrumentations/pg.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function wrapClient (pg, agent) {
3232
protocol: consts.PROTOCOLS.POSTGRES,
3333
url: url,
3434
host: port ? host + ':' + port : host,
35-
method: utils.tryParseSql(args[0]),
35+
method: utils.tryParseSql(args[0]) || 'unknown',
3636
disableCallback: !isCallback
3737
})
3838
}

0 commit comments

Comments
 (0)