-
Notifications
You must be signed in to change notification settings - Fork 1.7k
fix status check event error reporting #4101
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
fix status check event error reporting #4101
Conversation
d97d90c
to
175e107
Compare
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.
I think this change would be cleaner if you'd used a delegate that wraps the body of the StatusCheck result, sends the event and then returns the result. Using defer for that seems a bit fragile - for example the return error in L77 is already different from the err
that we are sending in the event.
plus, it would be great to have tests for our events...I'll open a bug for that |
Codecov Report
|
175e107
to
4ddb955
Compare
Fixes: #4100
Description
Add a defer func to always add a event, failed or successful for
StatusCheck
User facing changes (remove if N/A)
no. Event API Changes.
Follow-up Work (remove if N/A)