This will always set the context from Rails when an error is reported even if it is not handled. This will allow applications to use Rails.error.set_context instead of Honeybadger.context and still see that context in errors in the UI.
It would have been nice if Rails provided an event for when set_context is called so that we can hook into that, but this should be ok for now.
This will always set the context from Rails when an error is reported even if it is not handled. This will allow applications to use
Rails.error.set_context
instead ofHoneybadger.context
and still see that context in errors in the UI.It would have been nice if Rails provided an event for when
set_context
is called so that we can hook into that, but this should be ok for now.Closes: https://github.com/honeybadger-io/honeybadger-ruby/issues/648
Before submitting a pull request, please make sure the following is done:
rake spec
in the repository root.