-
Notifications
You must be signed in to change notification settings - Fork 63
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
feat: allow async beforeNotify functions to modify the notice object #984
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.
Not trying to gum up progress here, but I don't feel great about how the return value of notify()
is working in this PR.. let's discuss further?
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.
The documentation helps, thanks. I still think it's not ideal, but I understand wanting to keep backwards-compatibility!
I will go ahead and merge this to get this feature out, but here's what I'm thinking:
What do you think? |
How would a user programmatically stop a notice from being sent? |
I am referring to the return value of the |
Gotcha—yeah, I think that makes sense. |
Done! See #1162. |
Status
READY
Description
Fixes #981.
Allow async beforeNotify handlers to modify the
notice
object before sending to Honeybadger.Todos
async beforeNotifyHandler
async afterNotifyHandler