node-datadog-metrics icon indicating copy to clipboard operation
node-datadog-metrics copied to clipboard

Support Browser usage

Open rue-bwebb opened this issue 6 years ago • 1 comments

Right now the only thing preventing this library from being usable in modern browsers natively is the call to tid.unref in the logger. Could we get this line changed to something like tid.unref && tid.unref()?

rue-bwebb avatar Nov 07 '18 18:11 rue-bwebb

@rue-bwebb The specific issue you noted (timer.unref()) will be fixed as soon as the next release is published, although we aren’t actively testing or maintaining for browser-based usage. If you’re still trying to use (or using) this in a browser, please give the code on the main branch a try and post back here if you hit other problems.

Mr0grog avatar Sep 21 '22 22:09 Mr0grog