4 ms·
We've been doing this for a few years in our GWT app. We also keep a ring buffer of log events. We don't have much noise, but we're using GWT's "unhandled exc
by dunham 15y ago
We've been doing this for a few years in our GWT app. We also keep a ring buffer of log events.
We don't have much noise, but we're using GWT's "unhandled exception" hook which I believe is driven by try/catch blocks on all entry points into the app. (i.e. event handlers - I think they just wrap callbacks before hooking them up.) So we only get exceptions that occur in our own code.
For us, the stacktraces are actually very useful (on the few browsers that provide traces). We dump a translation table from GWT's minification process and use it on the server side to de-obfuscate the stack traces. It works on all of the function/method names, but not local variable names.
The new javascript "source maps" technology should provide enough information to do this with any minifier or compiler. I'd expect your favorite javascript minifier to start outputting source maps in the next few months.