Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Public API for collection #15

Open
dcramer opened this issue Dec 18, 2012 · 5 comments
Open

Public API for collection #15

dcramer opened this issue Dec 18, 2012 · 5 comments

Comments

@dcramer
Copy link

dcramer commented Dec 18, 2012

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);
    });
}
@devinrhode2
Copy link

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!

@occ
Copy link
Owner

occ commented Dec 18, 2012

Sounds like a good idea

@devinrhode2
Copy link

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.

@niemyjski
Copy link
Collaborator

@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
Copy link
Collaborator

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants