[PLAT-5450] Add missing app and device data to OOM events #908
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Goal
Out Of Memory errors have been missing some of the information present in other types of errors reported by Bugsnag.
The aim of this PR is to add the following data:
batteryLevel
charging
dsymUUIDs
manufacturer
orientation
runtimeVersions
totalMemory
Design
The additional information is captured in
BugnagSystemState
as this information is already being used to generate the OOM error payload.Changeset
BugnagSystemState
has been amended to capture additional information.BugsnagAppWithState
,BugsnagDeviceWithState
andBugsnagEvent
have been updated to read this new information.Testing
Manually tested and verified by examining the payloads sent to the notify endpoint.