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

feat(android-ndk): add api for getting debug images by addresses #4089

Merged
merged 23 commits into from
Feb 11, 2025

Conversation

buenaflor
Copy link
Contributor

@buenaflor buenaflor commented Jan 21, 2025

question: can I push this change onto a v7 branch? We cannot bump to Android v8 at this moment because we also depend on min android api 19 which has been bumped to 21 here. if not possible we'll mark this as a Flutter v9 feature

📜 Description

Adds debug images loader API for getting images by addresses

💡 Motivation and Context

On Flutter we are currently loading all available debug images which can sometimes range up to 300 images but in most cases only 1 is actually used so this is much more efficient and the envelope is therefore smaller

Closes #3925

💚 How did you test it?

Unit test, e2e test with Flutter app

📝 Checklist

  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.

🔮 Next steps

Copy link
Contributor

github-actions bot commented Jan 21, 2025

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 187f21e

@buenaflor
Copy link
Contributor Author

cc @markushi can you have a quick look pls

@buenaflor buenaflor requested a review from lcian as a code owner January 28, 2025 15:58
Copy link
Contributor

github-actions bot commented Jan 28, 2025

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 402.15 ms 458.02 ms 55.87 ms
Size 1.58 MiB 2.21 MiB 640.27 KiB

Previous results on branch: feat/internal-sdk-debug-image-fetching-per-stacktrace

Startup times

Revision Plain With Sentry Diff
b05e00c 408.52 ms 443.22 ms 34.70 ms
77ae45a 410.94 ms 491.28 ms 80.35 ms
ce9de6a 428.98 ms 502.62 ms 73.64 ms
86c73f9 402.86 ms 441.96 ms 39.10 ms
a40047a 339.33 ms 467.08 ms 127.76 ms
9b805f5 460.37 ms 526.70 ms 66.33 ms
e0c74e1 438.56 ms 551.48 ms 112.92 ms

App size

Revision Plain With Sentry Diff
b05e00c 1.58 MiB 2.21 MiB 640.27 KiB
77ae45a 1.58 MiB 2.21 MiB 638.68 KiB
ce9de6a 1.65 MiB 2.31 MiB 678.86 KiB
86c73f9 1.65 MiB 2.31 MiB 678.17 KiB
a40047a 1.65 MiB 2.31 MiB 678.86 KiB
9b805f5 1.58 MiB 2.21 MiB 640.27 KiB
e0c74e1 1.58 MiB 2.21 MiB 640.27 KiB

markushi and others added 3 commits February 5, 2025 11:03
update test

clean up

update test

update comments

remove file

fix imports

update docs

revert doc

use hashset

Format code

update naming

apiDump

Improve Nullability, consider case of null imageSize

Update tests, ensure code_file and debug_file are set
@buenaflor
Copy link
Contributor Author

tested it on Flutter and looks good 👍

Copy link
Member

@romtsn romtsn left a comment

Choose a reason for hiding this comment

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

LGTM, but can we please add a changelog entry

@markushi markushi merged commit 5e31a6b into main Feb 11, 2025
35 checks passed
@markushi markushi deleted the feat/internal-sdk-debug-image-fetching-per-stacktrace branch February 11, 2025 13:22
markushi added a commit that referenced this pull request Feb 11, 2025
---------

Co-authored-by: Sentry Github Bot <bot+github-bot@sentry.io>
Co-authored-by: Markus Hintersteiner <markus.hintersteiner@sentry.io>
markushi added a commit that referenced this pull request Feb 11, 2025
* feat(android-ndk): add api for getting debug images by addresses (#4089)

---------

Co-authored-by: Sentry Github Bot <bot+github-bot@sentry.io>
Co-authored-by: Markus Hintersteiner <markus.hintersteiner@sentry.io>

* Update Changelog

* Format code

* Fix switch sync/data classes to match 7.x.x

---------

Co-authored-by: Giancarlo Buenaflor <giancarlo_buenaflor@yahoo.com>
Co-authored-by: Sentry Github Bot <bot+github-bot@sentry.io>
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.

[Android] Add internal hybrid sdk api for fetching debug images that were referenced in the stacktrace
5 participants