Skip to content

Provide hook to add metadata #142

Closed
Closed
@padolsey

Description

@padolsey

It would be really nice if raven-js provided a mechanism for devs to add their own metadata (i.e. via the extra option). Right now, in order to do this, I have to take charge of catching my app's errors myself and then manually calling captureException:

Raven.captureException(error, { extra: { /* metadata*/ } });

I would prefer a way where I can still take advantage of Raven's default window.onerror handling. Maybe there is one that I'm not aware of?

So I guess the question becomes: Is there a way to add extra data to every sent exception without having to catch the exceptions myself?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions