lib/monitor.js
function setupReqCounter() {

    reqCounter = reqCounter || new ReqCounter();

    process.monitor.getRequestCount = function () {
        return reqCounter._requests;
    };

    process.monitor.getTotalRequestCount = function () {
        return reqCounter._totalRequests;
    };

    process.monitor.getTransferred = function () {
        return reqCounter._transferred;
    };

    process.monitor.getOpenConnections = function () {
        return reqCounter._connections;
    };
}
function setupReqCounter() {

    reqCounter = reqCounter || new ReqCounter();

    process.monitor.getRequestCount = function () {
        return reqCounter._requests;
    };

    process.monitor.getTotalRequestCount = function () {
        return reqCounter._totalRequests;
    };

    process.monitor.getTransferred = function () {
        return reqCounter._transferred;
    };

    process.monitor.getOpenConnections = function () {
        return reqCounter._connections;
    };
}
function setupReqCounter ( ) { reqCounter = reqCounter || new ReqCounter ( ) ; process . monitor . getRequestCount = function ( ) { return reqCounter . _requests ; } ; process . monitor . getTotalRequestCount = function ( ) { return reqCounter . _totalRequests ; } ; process . monitor . getTransferred = function ( ) { return reqCounter . _transferred ; } ; process . monitor . getOpenConnections = function ( ) { return reqCounter . _connections ; } ; }
Instantiate the request counter Add methods to process object
Instantiate the request counter Add methods to process object