mof-statsdclient
Version:
middleware of floodesh, which provides a statsd client that allows you to send data to statsd server and automatically has some statistics sent that generally apply to all requests.
19 lines (14 loc) • 346 B
JavaScript
const should = require('should'),
Mof = require('mof'),
StatsdMiddleware = require('..')
let mof, ctx, client
describe('mof-uarotate()', function(){
before(function(){
mof = new Mof()
client = new StatsdMiddleware.StatsdClient({host:'127.0.0.1', port:8125});
mof.use(StatsdMiddleware.middleware());
ctx = {
}
})
})