Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Attaching data in dataCallback asyncronously #394

Open
rtymchyk opened this issue Oct 26, 2017 · 0 comments
Open

Attaching data in dataCallback asyncronously #394

rtymchyk opened this issue Oct 26, 2017 · 0 comments

Comments

@rtymchyk
Copy link

rtymchyk commented Oct 26, 2017

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.

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

2 participants