4 ms·
JavaScript Error Logging in Minutes
- tosh 14y agoAnyone knows whether the error handling API already is consistent between browsers?
- bentlegen 14y agoI believe Sentry's JS error reporting uses TraceKit: https://github.com/occ/TraceKit https://github.com/occ/TraceKit
- tosh 14y agoThanks for the pointer, last time I looked it was still a pain to normalize across different browsers :)
- MartinMond 14y agoTraceKit is pretty great, we're using it in a client project. Though it did not work in the Android WebView for me.
- nik-graf 14y agoYes it does as far as I know. Really an awesome lib.
- joshuacc 14y agoDoes anyone happen to know if there is an open-source equivalent to this type of service? Obviously, saving the errors isn't that difficult, but reporting it back in a decently browseable interface requires a bit more effort. :-) If nobody knows of anything, I might try building my own.
- Makkhdyn 14y agoSentry is open-source: https://github.com/getsentry/sentry https://github.com/getsentry/sentry
- joshuacc 14y agoThanks for pointing this out. I missed that item on the home page. :-)
- nik-graf 14y agoHere you can find the open sourced JavaScript lib https://github.com/getsentry/raven-js https://github.com/getsentry/raven-js
- joshuacc 14y agoThat is very helpful. Thanks!
- gooderlooking 14y agoFor anyone who plans to set this up on a site that gets moderate traffic, here's an example Raven config that helps weed out exceptions caused by 3rd party scripts and browser extensions: https://gist.github.com/impressiver/5092952 https://gist.github.com/impressiver/5092952 I initially set up Raven without this ignore list, and we drowned in exceptions caused by shoddy browser plugins and userscripts. On the flipside, sifting through those logs did help to explain a few unreproducible support tickets. Hope someone finds this of use!
- tosh 14y agoThanks a lot for sharing :)