Skip to content

Commit 1ce6a27

Browse files
committed
fix(ioredis): add default values
1 parent 318b3e6 commit 1ce6a27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/instrumentations/ioredis.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module.exports = function wrap (redis, agent) {
2727
return utils.wrapQuery.call(this, original, args, agent, {
2828
returnsPromise: typeof args[args.length - 1] !== 'function',
2929
protocol: consts.PROTOCOLS.REDIS,
30-
host: host,
30+
host: host || 'unknown',
3131
method: name,
3232
url: 'unknown'
3333
})

0 commit comments

Comments
 (0)