-
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 a breadcrumb automatically for changes in network connectivity #448
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.
Looks good and makes sense. A few inline comments, mostly asking for - implicit or explicit - clarification, and a couple of general queries:
- There's no CI testing for actual connectivity changes; is that something we could look into?
- And it would be useful to know the anticipated impact on normal event reporting. For instance would rapid repeated connectivity changes cause other event types to be dropped? If connectivity is unstable there may not be time to send existing stored events before the next connectivity change (which may in turn may cause an app failure).
- The choice of Bugsnag as a connectivity endpoint had no fallback and so assumes 100% uptime. Since we cache events we don't actually require 100% uptime for event reporting, but we do for connectivity breadcrumbs. Are there more "reliable" optional alternates that could be used as fallback endpoints?
b5c8a7f
to
df651af
Compare
This question might have been a misunderstanding - this changeset just leaves breadcrumbs for connectivity changes, no events are being generated by the event. |
df651af
to
597e79a
Compare
…iate * Allows to callee to respond to events where the connectivity was lost * Removes need to keep a reference to a Connectivity object, since it masked the fact that it required global state to function and There Can Only Be One. * Peppers more documentation throughout
597e79a
to
9aedd59
Compare
Adds a breadcrumb each time the connection status noticeably changes, such as between no connectivity, cellular, and wifi, using the Bugsnag server URL as a proxy for overall connectivity.
Refactors the connectivity checker as a part of this change to report connectivity in a way suitable to append to reports, reduce object references and increase documentation and testing.