-
Notifications
You must be signed in to change notification settings - Fork 130
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
Add onSendBlock methods #485
Conversation
8953299
to
f775823
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.
Left a few minor comments inline. The main question I had is whether this functionality is defined anywhere in the notifier spec? I had a quick browse and couldn't find anything, so if it's not defined it'd be good to fully document what the behaviour of OnSend
is before considering merging.
No, it's a divergence. Due to the limitations of the environment during a crash (no async, or ObjC etc) we can't implement |
It would be preferable if the spec was up-to-date before we consider merging this PR. Without a written specification that has been agreed upon, we run the risk of having to rework this interface or even scrap it entirely in favour of another solution. Documenting and scrutinising the requirements down beforehand reduces this risk. |
I've raised an issue, but I'd seen this more of a rename to get it more like the spec until such time as we have resolved whether the concept of OnSend is a Cocoa deviation or something we'll introduce as a broader concept. I'm happy to merge this once we have the add and remove methods (with no rawEventData parameter) but I'll kick off discussion on the issue to make sure it's covered before we release. |
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.
Now raised separately in the Spec to discuss naming, but I'm happy to merge this and raise additional work once that is resolved rather than hold off on this.
Add onSendBlock methods
Goal
Add missing
add/remove/clearOnSendBlock()
methods toBugsnag
andBugsnagConfiguration
. These are used in this notifier in lieu of equivalentonError
methods in others due to the tight requirements of code run in error handlers (e.g. no ObjC, async etc).Design
Straightforward exposure of access to the
BugsnagConfiguration
onSendBlocks array.Changeset
Bugsnag
,BugsnagConfiguration
and associated tests.Some small non-functional rearrangement refactoring of headers has also been done.
Tests
Unit tests. Not tested prior to
start
being called.Review
Outstanding Questions
master
for fixes,next
forfeatures)