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

Attaching data in dataCallback asyncronously #394

@rtymchyk

Description

@rtymchyk

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions