diff --git a/CHANGELOG b/CHANGELOG index a483e36..82705c7 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -7,6 +7,7 @@ This document describes changes between each past release. ------------------- - AWS driver did not take bucket configuration into account. +- Add a ``loop.`` prefix on not prefixed keys. 0.17.2 (2015-03-31) diff --git a/loop/filestorage/aws.js b/loop/filestorage/aws.js index 2eb9b23..ce9c6a9 100644 --- a/loop/filestorage/aws.js +++ b/loop/filestorage/aws.js @@ -47,7 +47,7 @@ AwsDriver.prototype = { if (err) return callback(err); if (self.statsdClient !== undefined) { self.statsdClient.timing( - 'aws.write', + 'loop.aws.write', Date.now() - startTime ); } @@ -77,7 +77,7 @@ AwsDriver.prototype = { var body = data.Body.toString(); if (self.statsdClient !== undefined) { self.statsdClient.timing( - 'aws.read', + 'loop.aws.read', Date.now() - startTime ); } @@ -103,7 +103,7 @@ AwsDriver.prototype = { if (err && err.code !== "NoSuchKey") return callback(err); if (self.statsdClient !== undefined) { self.statsdClient.timing( - 'aws.remove', + 'loop.aws.remove', Date.now() - startTime ); } diff --git a/loop/filestorage/filesystem.js b/loop/filestorage/filesystem.js index 652f5c7..9347fbb 100644 --- a/loop/filestorage/filesystem.js +++ b/loop/filestorage/filesystem.js @@ -37,7 +37,7 @@ Filesystem.prototype = { if (err) return callback(err); if (self.statsdClient !== undefined) { self.statsdClient.timing( - 'filesystem.write', + 'loop.filesystem.write', Date.now() - startTime ); } @@ -66,7 +66,7 @@ Filesystem.prototype = { if (err) return callback(err); if (self.statsdClient !== undefined) { self.statsdClient.timing( - 'filesystem.read', + 'loop.filesystem.read', Date.now() - startTime ); } @@ -90,7 +90,7 @@ Filesystem.prototype = { if (err && err.code !== "ENOENT") return callback(err); if (self.statsdClient !== undefined) { self.statsdClient.timing( - 'filesystem.remove', + 'loop.filesystem.remove', Date.now() - startTime ); } diff --git a/loop/simplepush.js b/loop/simplepush.js index 460f060..8861586 100644 --- a/loop/simplepush.js +++ b/loop/simplepush.js @@ -26,8 +26,8 @@ SimplePush.prototype = { urls.forEach(function(simplePushUrl) { if (self.statsdClient !== undefined) { - self.statsdClient.count("simplepush.call", 1); - self.statsdClient.count("simplepush.call." + reason, 1); + self.statsdClient.count("loop.simplepush.call", 1); + self.statsdClient.count("loop.simplepush.call." + reason, 1); } request.put({ url: simplePushUrl, diff --git a/loop/tokbox.js b/loop/tokbox.js index 061b0a3..e6e369b 100644 --- a/loop/tokbox.js +++ b/loop/tokbox.js @@ -73,7 +73,7 @@ TokBox.prototype = { } if (self.statsdClient !== undefined) { self.statsdClient.timing( - 'tokbox.createSession', + 'loop.tokbox.createSession', Date.now() - startTime ); } diff --git a/test/simplepush_test.js b/test/simplepush_test.js index c4bff76..e8a8e11 100644 --- a/test/simplepush_test.js +++ b/test/simplepush_test.js @@ -61,8 +61,8 @@ describe("simplePush object", function() { simplePush.notify("reason", "url1", 12345); assert.calledTwice(statsdSpy); - assert.calledWithExactly(statsdSpy, "simplepush.call.reason", 1); - assert.calledWithExactly(statsdSpy, "simplepush.call", 1); + assert.calledWithExactly(statsdSpy, "loop.simplepush.call.reason", 1); + assert.calledWithExactly(statsdSpy, "loop.simplepush.call", 1); }); });