Title: [Android]: Report SDK size as a comment in PRs · Issue #1303 · getsentry/sentry-java · GitHub
Open Graph Title: [Android]: Report SDK size as a comment in PRs · Issue #1303 · getsentry/sentry-java
X Title: [Android]: Report SDK size as a comment in PRs · Issue #1303 · getsentry/sentry-java
Description: We'd like to start managing the bundle size of the SDK more actively. For that, we'd like to start taking some numbers during PRs, and with the end goal of posting as a PR comment the bundle size and a diff to main. Approaches considered...
Open Graph Description: We'd like to start managing the bundle size of the SDK more actively. For that, we'd like to start taking some numbers during PRs, and with the end goal of posting as a PR comment the bundle size a...
X Description: We'd like to start managing the bundle size of the SDK more actively. For that, we'd like to start taking some numbers during PRs, and with the end goal of posting as a PR comment the bundl...
Opengraph URL: https://github.com/getsentry/sentry-java/issues/1303
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Android]: Report SDK size as a comment in PRs","articleBody":"We'd like to start managing the bundle size of the SDK more actively.\n\nFor that, we'd like to start taking some numbers during PRs, and with the end goal of posting as a PR comment the bundle size and a diff to `main`.\n\n### Approaches considered and characteristics of them:\n\n#### Measuring the aar\n\n- Either we do a naive measurement solely of our package without considering dependencies. Or we need to recursively find all dependencies and measure their sizes.\n- There are multiple slices on each aar, for each abi.\n - We'd need to compile for a specific one, or peek into the aar to calculate specific architectures.\n\n#### Measuring the final app\n\n- We can run proguard on the sample app which has heavy use of our features and measure more realistically the \"overhead\" in bundle size.\n\nSuggested Phases:\n\n- [x] Measure size of sample app\n- [x] Post size as a comment to PR\n- [x] Add flavor without Sentry and measure size\n- [x] Post both to PR the metrics\n - [x] Sizes (like JS bundle on getsentry/sentry) to PR\n - [x] Method count\n - [x] Diff (using [JakeWharton/diffuse](https://github.com/JakeWharton/diffuse) or [Tencent/matrix@master/matrix/matrix-android/matrix-apk-canary](https://github.com/Tencent/matrix/tree/master/matrix/matrix-android/matrix-apk-canary?rgh-link-date=2022-07-22T07%3A44%3A54Z))\n- [x] Proguard the sample app (both withSentryAndNdk and withoutSentryOrNdk flavors)\n- [ ] Document size\n - [ ] For example: [https://pspdfkit.com/guides/android/current/faq/framework-size/](https://pspdfkit.com/guides/android/current/faq/framework-size/)\n - [x] Not having Kotlin so kotlin std doesn't affect size\n","author":{"url":"https://github.com/bruno-garcia","@type":"Person","name":"bruno-garcia"},"datePublished":"2021-03-03T23:17:56Z","url":"https://github.com/getsentry/sentry-java/issues/1303"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ac254409-8eba-2b65-0813-efd927df9953 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B32C:21AC8A:A0B8E:E06C5:6B042DA6 |
| html-safe-nonce | 37e3663f8a022627ffbdecfaa2dc59e5706c899c2c8247b54dc5f8923efdb5c1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzJDOjIxQUM4QTpBMEI4RTpFMDZDNTo2QjA0MkRBNiIsInZpc2l0b3JfaWQiOiI3NDUxNTUxMjM5OTUyOTM2MzU4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ae6478242bcbd894e2693b9e1c396edaae1cb5bb16739457ce543214b5181043 |
| hovercard-subject-tag | issue:821577491 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-java/1303/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1507688b2dc8ad3dbc0076ca7104265e31adbc2acf1012412f7babc53d739db1/getsentry/sentry-java/issues/1303 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1507688b2dc8ad3dbc0076ca7104265e31adbc2acf1012412f7babc53d739db1/getsentry/sentry-java/issues/1303 |
| og:image:alt | We'd like to start managing the bundle size of the SDK more actively. For that, we'd like to start taking some numbers during PRs, and with the end goal of posting as a PR comment the bundle size a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bruno-garcia |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-java git https://github.com/getsentry/sentry-java.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3368190 |
| octolytics-dimension-repository_nwo | getsentry/sentry-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3368190 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width