TraceKit icon indicating copy to clipboard operation
TraceKit copied to clipboard

Public API for collection

Open dcramer opened this issue 13 years ago • 5 comments

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);
    });
}

dcramer avatar Dec 18 '12 07:12 dcramer

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!

devinrhode2 avatar Dec 18 '12 07:12 devinrhode2

Sounds like a good idea

occ avatar Dec 18 '12 18:12 occ

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.

devinrhode2 avatar Dec 19 '12 09:12 devinrhode2

@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.

niemyjski avatar May 13 '15 22:05 niemyjski

@dcramer, @devinrhode2 can't you do this today synchronously by calling: TraceKit.computeStackTrace(error);

niemyjski avatar May 20 '15 13:05 niemyjski