Skip to content

Commit 929c250

Browse files
committed
fix(mongodb): add default values
1 parent 1ce6a27 commit 929c250

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/instrumentations/mongodb.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ module.exports = function (mongodb, agent) {
4646
return utils.wrapQuery.call(this, original, args, agent, {
4747
protocol: consts.PROTOCOLS.MONGODB,
4848
url: _this.collectionName || 'unknown',
49-
host: host,
49+
host: host || 'unknown',
5050
method: name,
5151
disableCallback: name === 'aggregate'
5252
})

0 commit comments

Comments
 (0)