No description, website, or topics provided.
JavaScript
Switch branches/tags
Clone or download
ikemonn Merge pull request #7 from makinoy/feature/get_elapsed
Update version / Create package-lock
Latest commit b009634 Apr 18, 2018

README.md

libs-dogstatsd

Coverage Status

A wrapper library of node-dogstatsd

npm install libs-dogstatsd
var dogstatsd = require('libs-dogstatsd')({
  HOST: 'localhost'
  PORT: 8125
  mock: false
})

var startTime = Date.now()
dogstatsd.increment('test')
dogstatsd.timing('test2', Date.now() - startTime);
dogstatsd.gauge('test3', 100)

const stats = dogstatsd.start();
stats.tick('test4');
stats.tick('test5',1 ,1 ,['tag']);

const wrapped = dogstatsd.wrap((a, b, cb) => {
  cb(null)
})
wrapped('a', 'b', () => {
  console.log('done')
})