Skip to content

Support adding React Native promise rejection stacktraces #1103

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

Merged
merged 9 commits into from
Feb 4, 2021

Conversation

fractalwrench
Copy link
Contributor

@fractalwrench fractalwrench commented Feb 1, 2021

Goal

Ports the changes from #1001 and #1006 which allows serializing the React Native promise rejection stacktrace in the Error API payload. This was originally implemented on this branch: https://github.com/bugsnag/bugsnag-android/tree/integration/capture-ndk-stack-traces-for-anrs

Changeset

  • Add type field to Stackframe which allows overriding the default type of an error
  • Refactor how event information is encoded in the error report's filename
  • Serialize the error types into a Bugsnag-Stacktrace-Types header

Testing

Relied on existing test coverage that was added in the original PRs. Additionally tested with the JS changes on this branch: bugsnag/bugsnag-js#1279

Note: the branch is failing due to a known flake which has been addressed here: #1108

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

@bugsnagbot
Copy link
Collaborator

Android notifier sizes

Format Size impact of Bugsnag (kB) Size impact of Bugsnag when Minified (kB)
APK 1472.46 1383.39
arm64_v8a 381.61 291.5
armeabi 361.12 271.01
armeabi_v7a 344.75 254.64
x86 422.55 332.44
x86_64 406.17 311.97

Generated by 🚫 Danger

@fractalwrench fractalwrench merged commit f94c4ac into next Feb 4, 2021
@fractalwrench fractalwrench deleted the rn-promise-rejection branch February 4, 2021 11:05
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.

3 participants