diff --git a/services/spelling/app/coffee/ASpellWorker.coffee b/services/spelling/app/coffee/ASpellWorker.coffee index ca685480f2..6576cd5213 100644 --- a/services/spelling/app/coffee/ASpellWorker.coffee +++ b/services/spelling/app/coffee/ASpellWorker.coffee @@ -11,11 +11,11 @@ class ASpellWorker @count = 0 @pipe = child_process.spawn("aspell", ["pipe", "-t", "--encoding=utf-8", "-d", language]) logger.info process: @pipe.pid, lang: @language, "starting new aspell worker" - metrics.inc "aspellWorker-start-" + @language + metrics.inc "aspellWorker-start", 1, {method: @language} @pipe.on 'exit', () => @state = 'killed' logger.info process: @pipe.pid, lang: @language, "aspell worker has exited" - metrics.inc "aspellWorker-exit-" + @language + metrics.inc "aspellWorker-exit" , 1, {method: @language} @pipe.on 'close', () => @state = 'closed' unless @state == 'killed' if @callback? diff --git a/services/spelling/app/coffee/LearnedWordsManager.coffee b/services/spelling/app/coffee/LearnedWordsManager.coffee index 4b772ea823..b0e0b38cc9 100644 --- a/services/spelling/app/coffee/LearnedWordsManager.coffee +++ b/services/spelling/app/coffee/LearnedWordsManager.coffee @@ -17,10 +17,10 @@ module.exports = LearnedWordsManager = getLearnedWords: (user_token, callback = (error, words)->) -> mongoCachedWords = mongoCache.get(user_token) if mongoCachedWords? - metrics.inc "mongoCache-hit", 0.1 + metrics.inc "mongoCache", 0.1, {status: "hit"} return callback(null, mongoCachedWords) - metrics.inc "mongoCache-miss", 0.1 + metrics.inc "mongoCache", 0.1, {status: "miss"} logger.info user_token:user_token, "mongoCache miss" db.spellingPreferences.findOne token: user_token, (error, preferences) ->