node-statsd
node-statsd copied to clipboard
Is sampleRate required for .increment?
> var StatsD = require('node-statsd').StatsD;
undefined
> var client = new StatsD();
undefined
> client.increment('foo', 1, function() { console.log('fin'); })
undefined
> client.increment('foo', 1, 1, function() { console.log('fin'); })
undefined
> fin
undefined
>
I waited a few seconds after the first call to increment, and callback was never invoked.
Using 0.0.7
I'd be happy to create a PR to update README with more detailed info about which args are optional/required for each method exposed by StatsD, if you're interested.
this shouldn't be the case. the api for all calls should be the same.