From e7f71a25d89acea70fcf306bb47c604ef1859c59 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Fri, 17 Mar 2017 11:47:38 +0000 Subject: [PATCH] Use an explicit prefix --- libraries/metrics/timeAsyncMethod.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/metrics/timeAsyncMethod.coffee b/libraries/metrics/timeAsyncMethod.coffee index 0b604c3683..bd4743930c 100644 --- a/libraries/metrics/timeAsyncMethod.coffee +++ b/libraries/metrics/timeAsyncMethod.coffee @@ -1,12 +1,12 @@ -module.exports = (obj, methodName, key, logger) -> +module.exports = (obj, methodName, prefix, logger) -> metrics = require('./metrics') if typeof obj[methodName] != 'function' throw new Error("[Metrics] expected object property '#{methodName}' to be a function") realMethod = obj[methodName] - key = "methods.#{key}" + key = "#{prefix}.#{methodName}" obj[methodName] = (originalArgs...) ->