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

NDK should obey Configuration.maxBreadcrumbs #2020

Merged
merged 2 commits into from
Apr 24, 2024

Conversation

lemnik
Copy link
Contributor

@lemnik lemnik commented Apr 23, 2024

Goal

NDK should obey Configuration.maxBreadcrumbs

Design

Change the bugsnag_event.breadcrumbs to be dynamically allocated instead of a fixed-size block. This blob is written out to the event file after the core event, but before the feature-flags.

Changes

  • Bumped the event version to 14
  • Added bugsnag_event.max_crumb_count to track the size of the breadcrumbs buffer
  • Changed bugsnag_event.breadcrumbs to be bugsnag_breadcrumb* instead of `bugsnag_breadcrumb[50]

Testing

Manual testing, and a new end-to-end test added

@bugsnagbot
Copy link
Collaborator

Android notifier sizes

Format Size impact of Bugsnag (kB) Size impact of Bugsnag when Minified (kB)
APK 1845.12 1669.0
arm64_v8a 626.95 450.82
armeabi_v7a 561.42 385.29
x86 704.75 524.53
x86_64 671.99 495.86

Generated by 🚫 Danger

Copy link

@DariaKunoichi DariaKunoichi left a comment

Choose a reason for hiding this comment

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

LGTM

@lemnik lemnik merged commit e32d3cd into next Apr 24, 2024
39 checks passed
@lemnik lemnik deleted the PLAT-12008/ndk-breadcrumb-count branch April 24, 2024 07:02
@YYChen01988 YYChen01988 mentioned this pull request May 15, 2024
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.

None yet

3 participants