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

Support for per-request custom data #17

Open
austenito opened this issue Sep 23, 2013 · 2 comments
Open

Support for per-request custom data #17

austenito opened this issue Sep 23, 2013 · 2 comments

Comments

@austenito
Copy link

It would be great to support sending data per-request with a nice hook like https://bugsnag.com/docs/notifiers/ruby#sending-custom-data-with-exceptions

After reading the source, I'm able to send custom data by overriding the errplane_request_data in ApplicationController

  def errplane_request_data
    request_data = super
    request_data[:custom_data] = {}
    request_data[:custom_data][:more_data] = { user_id: 123 } 
    request_data
  end

This doesn't seem like the best way to hook into errplane. Are there any hooks currently in the works for this?

@toddboom
Copy link
Contributor

Austen,

This seems like a good idea. I'll see if I can get it added in sometime this week and push a release. Thanks for the suggestion!

@austenito
Copy link
Author

awesome! Thanks for all of the support!

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