raven-node icon indicating copy to clipboard operation
raven-node copied to clipboard

Attaching data in dataCallback asyncronously

Open rtymchyk opened this issue 8 years ago • 0 comments

Do you want to request a feature or report a bug?

feature

Has someone had this problem before?

Not that I can find.

What is the current behavior?

Can set data on an error with dataCallback before it is sent to Sentry, but it must be a syncronous operation.

What is the expected behavior?

Should be able to perform async operations in dataCallback, and invoke a callback with that data when ready. The use case is I want to attach user context (email + id), but this requires hitting an API to fetch that. This means right now I have to fetch the current user before every request in Express, even if it doesn't result in an error.

rtymchyk avatar Oct 26 '17 16:10 rtymchyk