From 38d95442a6351687422af02c51bfce1437cc3f4f Mon Sep 17 00:00:00 2001 From: Tj Holowaychuk Date: Sat, 2 Apr 2011 15:30:29 -0700 Subject: [PATCH] added request.id --- lib/plugins/stats.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/plugins/stats.js b/lib/plugins/stats.js index 30422fe..ad8ee9c 100644 --- a/lib/plugins/stats.js +++ b/lib/plugins/stats.js @@ -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){ @@ -66,6 +68,7 @@ module.exports = function(options){ , httpVersion: req.httpVersion , method: req.method , url: req.url + , id: ++id }; master.call('reportStats', 'request', data);