Skip to content

Commit

Permalink
added request.id
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Apr 2, 2011
1 parent 7c1a8f2 commit 38d9544
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/plugins/stats.js
Expand Up @@ -46,6 +46,8 @@ module.exports = function(options){

// worker stats
if (master.isWorker) {
var id = 0;

// connections
if (options.connections) {
server.on('connection', function(sock){
Expand All @@ -66,6 +68,7 @@ module.exports = function(options){
, httpVersion: req.httpVersion
, method: req.method
, url: req.url
, id: ++id
};

master.call('reportStats', 'request', data);
Expand Down

0 comments on commit 38d9544

Please sign in to comment.