Public API for collection
It'd be nice if you could provide a callback in TraceKit.report() as an alternative to using .subscribe.
i.e. I want to do this:
function capture(ex, options) {
TraceKit.report(ex, function(data) {
MyOtherThing.report(data, options);
});
}
oooo nifty, yeah you should build it, it's a pretty darn small library imo
Be sure to do typeof () with parens.
Thanks for the feedback and ideas!
Sounds like a good idea
Basically what you want is a pure function to normalize the exception object - we should do a TraceKit.normalize(ex); function. I kinda actually wanted/expected this when I re-discovered TraceKit recently.
@dcramer I'm helping maintain TraceKit upstream.. If you want to recreate this issue in the master (https://github.com/csnover/TraceKit) That would be greatly appreciated.
@dcramer, @devinrhode2 can't you do this today synchronously by calling: TraceKit.computeStackTrace(error);