Skip to content
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 onCrashHandler data to BugsnagEvent metadata #564

Merged
merged 2 commits into from
Apr 23, 2020
Merged

Conversation

fractalwrench
Copy link
Contributor

Goal

Data which is added in the onCrashHandler is now added to error reports in an onCrash metadata tab. This provides a replacement for the previous API which allowed for these values to be inspected (but not reported) in the now removed rawData parameter.

Screenshot 2020-04-23 at 10 14 38

Changeset

  • Read user information when constructing a BugsnagEvent from a KSCrash report
  • Removed other keys which can be serialized into the user object that are not user-added data
  • Added any remaining information to an onCrash metadata tab

Tests

Added a unit test to verify behaviour of onCrash data parsing. Manually tested onCrashHandler functionality in an example app and verified the value was sent to the dashboard.

@fractalwrench fractalwrench changed the title Add onCrashHandler data to metadata Add onCrashHandler data to BugsnagEvent metadata Apr 23, 2020
Copy link
Contributor

@tomlongridge tomlongridge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - couple of minor suggestions

Tests/BugsnagOnCrashTest.m Show resolved Hide resolved
@fractalwrench fractalwrench merged commit 198bab0 into v6 Apr 23, 2020
@fractalwrench fractalwrench deleted the v6-oncrash-data branch April 23, 2020 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants