analytics icon indicating copy to clipboard operation
analytics copied to clipboard

Improve error handling

Open jpolo opened this issue 2 years ago • 0 comments

Hi !

I have written a custom plugin for my project. It seems that when the track plugin method throws/rejects the Analytics.track method never resolve nor reject (=> in other words, my unit test times out).

Rather than forwarding rejection to the Analytics.track (We often assume that logging, sending analytics is a failsafe operation) I would suggest to implement an 'error' event that could make possible to log somewhere (console, logger, etc).

Thanks in advance !

jpolo avatar Oct 07 '22 09:10 jpolo