node-statsd icon indicating copy to clipboard operation
node-statsd copied to clipboard

using options object and handle error inside module when handleError …

Open doron2402 opened this issue 10 years ago • 2 comments

  1. change options to an object.
  2. 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.

doron2402 avatar Jun 18 '15 00:06 doron2402

@sivy ^^ want to merge it? it can help us a lot.

Thanks

doron2402 avatar Jun 18 '15 20:06 doron2402

@sivy if you decide to merge to those changes I'll have to update the README file

doron2402 avatar Jun 22 '15 16:06 doron2402