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

Allow error reporting middleware to detect user #4171

Open
shouichi opened this issue Oct 10, 2019 · 0 comments
Open

Allow error reporting middleware to detect user #4171

shouichi opened this issue Oct 10, 2019 · 0 comments
Labels
api: clouderrorreporting Issues related to the Error Reporting API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@shouichi
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Though there is no automatic way to set user field of error reporting, we usually rely on rack middleware to catch errors. It would be nice if the middleware automatically sets user from env.

Describe the solution you'd like

Set env["whatever"] allows the middleware to use that value as user.

Describe alternatives you've considered

Setting callback method on reporter.

config.on_report = -> (env, event) {
  event.user = env["whatever"]
}

Additional context

None.

@quartzmo quartzmo added api: clouderrorreporting Issues related to the Error Reporting API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. labels Oct 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: clouderrorreporting Issues related to the Error Reporting API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

2 participants