Skip to content

Commit d8e38db

Browse files
committed
fix(redis): add default values
1 parent 929c250 commit d8e38db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/instrumentations/redis.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports = function wrap (redis, agent, pkg) {
2626
var commands = this.__trace
2727
return utils.wrapQuery.call(this, originalExec, args, agent, {
2828
protocol: consts.PROTOCOLS.REDIS,
29-
host: host,
29+
host: host || 'unknown',
3030
method: 'multi: ' + commands.join(', '),
3131
url: 'unknown'
3232
})
@@ -35,7 +35,7 @@ module.exports = function wrap (redis, agent, pkg) {
3535
} else {
3636
return utils.wrapQuery.call(this, original, args, agent, {
3737
protocol: consts.PROTOCOLS.REDIS,
38-
host: host,
38+
host: host || 'unknown',
3939
method: name,
4040
url: 'unknown'
4141
})

0 commit comments

Comments
 (0)