-
Notifications
You must be signed in to change notification settings - Fork 20
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 the component and action to also be set by the library #87
Allow the component and action to also be set by the library #87
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This approach works for me. We have a similar approach for tags in our Ruby gem, where you can set the tags
key in the context and those tags will get added to the error. This will basically add action
and component
as "special" keys for PHP context. We'll just need to be sure it's clearly documented so that people aren't surprised when using component
as an arbitrary key in their context changes their error grouping. :)
Maybe we should prefix them with honeybadger_ ? |
Yeah, I could go for that. Do you think we should delete the from the context when reading them, so they don't appear in the context section? |
@joshuap I made it much more simple. I added a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me. Thanks!
* Adds controller and action to the context * Updates implementation based on honeybadger-io/honeybadger-php#87 * Added changelog
Description
By allowing the component and action to be set by the context as well as the additional parameters we can leverage it to easily set the component and action for the Laravel library.
Todos
Steps to Test or Reproduce
Outline the steps to test or reproduce the PR here.