Permalink
Browse files

Quick change to the default metrics namespace

  • Loading branch information...
1 parent e4a3bd7 commit f558b6856d3151638c64f997d6639fc76d5dd957 Techwraith committed Mar 7, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/app.js
View
4 lib/app.js
@@ -224,7 +224,7 @@ var App = function () {
// Handle the requests
// ==================
- var allRequestTimer = geddy.config.metrics && geddy.metrics.Timer('all-requests')
+ var allRequestTimer = geddy.config.metrics && geddy.metrics.Timer('Geddy.all-requests')
, controllerActionTimers = {};
geddy.server.addListener('request', function (req, resp) {
var reqObj
@@ -322,7 +322,7 @@ var App = function () {
controllerActionTimers[controllerName] = controllerActionTimers[controller] || {}
controllerActionTimers[controllerName][actionName] =
controllerActionTimers[controllerName][actionName] ||
- geddy.metrics.Timer(controllerName + '.' + actionName)
+ geddy.metrics.Timer("Geddy."+controllerName + '.' + actionName)
controllerActionTimers[controllerName][actionName].update(endTime - accessTime);
}
});

0 comments on commit f558b68

Please sign in to comment.