Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pre-reporting callback to be able to add per-report tags to a particular event. #83

Closed
bisrael opened this issue Mar 11, 2013 · 2 comments

Comments

@bisrael
Copy link
Contributor

bisrael commented Mar 11, 2013

So, before a request is going to get fired off to sentry, handing that event to a callback so that I could return a set of tags or options to be appended to the requrest.

An example use (for me in paricular) is adding tags that specify requireJS: true/false to events that get caught by require's onError such as script loading or other stuff hapenning in a require load.

This is useful if the same event gets fired in both place for filtering.

@mattrobenolt
Copy link
Contributor

Like this: https://github.com/getsentry/raven-js/blob/master/src/raven.js#L450-L452 ?

function callback(data) {
  data.something = 'lol';
  return data;
}

Raven.config('', {dataCallback: callback})

Or do you want something different?

@mattrobenolt
Copy link
Contributor

This can be done with dataCallback

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

No branches or pull requests

2 participants