node-statsd
node-statsd copied to clipboard
using options object and handle error inside module when handleError …
- change options to an object.
- add handleError (we had issue on production)
the issue was that one of our statsd server url was change and the whole app crash { [Error: getaddrinfo ENOTFOUND] code: 'ENOTFOUND', errno: 'ENOTFOUND', syscall: 'getaddrinfo' }
I fix it using domain but that's seems like a good solution that you could listen to the socket and disable it from returning an error.
@sivy ^^ want to merge it? it can help us a lot.
Thanks
@sivy if you decide to merge to those changes I'll have to update the README file