Skip to content

V7: Uppercase boolean flags #4965

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
Jul 7, 2025
Merged

V7: Uppercase boolean flags #4965

merged 9 commits into from
Jul 7, 2025

Conversation

lucas-zimerman
Copy link
Collaborator

@lucas-zimerman lucas-zimerman commented Jul 2, 2025

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

This PR formats boolean flags on a capitalized format, also fixed the issue if users tries to set a a symbol as a tag.

💡 Motivation and Context

Fixes #4744

Why an integration?

This way it's easy to rollback to the original state if needed, and also it unifies the way we apply the changes between web and mobile.

💚 How did you test it?

Unit tests and local

iOS:

https://sentry-sdks.sentry.io/issues/6722231659/events/24d96d2c84e746ea86ce32776590a939/?project=5428561

https://sentry-sdks.sentry.io/issues/6722231616/events/946bfc7a105f4c5f938a311691520859/?project=5428561

After set/unset tags
https://sentry-sdks.sentry.io/issues/5005275690/events/337444288da644129839858236149d4e/?project=5428561

Android

https://sentry-sdks.sentry.io/issues/6722231616/events/e0766bde09714075871bb8b860c7f054/?project=5428561

https://sentry-sdks.sentry.io/issues/6722231659/events/6a0a476505244ceaaf38732d372759c2/?project=5428561

After set/unset tags
https://sentry-sdks.sentry.io/issues/5005275690/events/f00552ca3f5a441c8a10ebb8cb3a033a/?project=5428561

📝 Checklist

  • I added tests to verify 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.
  • All tests passing
  • No breaking changes

🔮 Next steps

Test RN Web

Copy link
Contributor

github-actions bot commented Jul 2, 2025

Android (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 429.90 ms 420.92 ms -8.98 ms
Size 17.75 MiB 19.60 MiB 1.85 MiB

Baseline results on branch: v7

Startup times

Revision Plain With Sentry Diff
fb47c4a 435.33 ms 434.94 ms -0.40 ms
472960b 418.84 ms 405.38 ms -13.46 ms
7eff2d7 420.64 ms 401.86 ms -18.78 ms
3c99746 399.51 ms 429.09 ms 29.58 ms
f870f2d 444.67 ms 449.62 ms 4.95 ms

App size

Revision Plain With Sentry Diff
fb47c4a 17.75 MiB 19.60 MiB 1.85 MiB
472960b 17.75 MiB 19.58 MiB 1.83 MiB
7eff2d7 17.75 MiB 19.60 MiB 1.85 MiB
3c99746 17.75 MiB 19.58 MiB 1.83 MiB
f870f2d 17.75 MiB 19.58 MiB 1.83 MiB

Previous results on branch: lz/v7/uc-boolean

Startup times

Revision Plain With Sentry Diff
854bf43 429.23 ms 421.89 ms -7.34 ms

App size

Revision Plain With Sentry Diff
854bf43 17.75 MiB 19.60 MiB 1.85 MiB

Copy link
Contributor

github-actions bot commented Jul 2, 2025

Android (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 384.90 ms 377.35 ms -7.54 ms
Size 7.15 MiB 8.35 MiB 1.20 MiB

Baseline results on branch: v7

Startup times

Revision Plain With Sentry Diff
f870f2d+dirty 398.49 ms 434.24 ms 35.75 ms
fb47c4a+dirty 408.58 ms 407.17 ms -1.41 ms
472960b+dirty 394.39 ms 376.18 ms -18.20 ms
7eff2d7+dirty 393.13 ms 426.77 ms 33.65 ms
3c99746+dirty 400.65 ms 399.59 ms -1.06 ms

App size

Revision Plain With Sentry Diff
f870f2d+dirty 7.15 MiB 8.34 MiB 1.18 MiB
fb47c4a+dirty 7.15 MiB 8.35 MiB 1.20 MiB
472960b+dirty 7.15 MiB 8.34 MiB 1.18 MiB
7eff2d7+dirty 7.15 MiB 8.35 MiB 1.20 MiB
3c99746+dirty 7.15 MiB 8.34 MiB 1.18 MiB

Previous results on branch: lz/v7/uc-boolean

Startup times

Revision Plain With Sentry Diff
854bf43+dirty 398.43 ms 403.82 ms 5.39 ms

App size

Revision Plain With Sentry Diff
854bf43+dirty 7.15 MiB 8.35 MiB 1.20 MiB

Copy link
Contributor

github-actions bot commented Jul 2, 2025

iOS (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1211.63 ms 1226.27 ms 14.63 ms
Size 2.63 MiB 3.80 MiB 1.17 MiB

Baseline results on branch: v7

Startup times

Revision Plain With Sentry Diff
f870f2d+dirty 1227.18 ms 1232.30 ms 5.12 ms
472960b+dirty 1213.96 ms 1222.58 ms 8.62 ms
fb47c4a+dirty 1231.00 ms 1231.33 ms 0.33 ms
7eff2d7+dirty 1225.34 ms 1234.53 ms 9.19 ms
3c99746+dirty 1215.12 ms 1222.31 ms 7.18 ms

App size

Revision Plain With Sentry Diff
f870f2d+dirty 2.63 MiB 3.79 MiB 1.15 MiB
472960b+dirty 2.63 MiB 3.79 MiB 1.15 MiB
fb47c4a+dirty 2.63 MiB 3.80 MiB 1.17 MiB
7eff2d7+dirty 2.63 MiB 3.79 MiB 1.16 MiB
3c99746+dirty 2.63 MiB 3.78 MiB 1.15 MiB

Previous results on branch: lz/v7/uc-boolean

Startup times

Revision Plain With Sentry Diff
854bf43+dirty 1229.31 ms 1232.47 ms 3.16 ms

App size

Revision Plain With Sentry Diff
854bf43+dirty 2.63 MiB 3.79 MiB 1.16 MiB

Copy link
Contributor

github-actions bot commented Jul 2, 2025

iOS (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1239.52 ms 1231.98 ms -7.54 ms
Size 3.19 MiB 4.37 MiB 1.18 MiB

Baseline results on branch: v7

Startup times

Revision Plain With Sentry Diff
f870f2d+dirty 1230.08 ms 1238.88 ms 8.80 ms
472960b+dirty 1243.67 ms 1233.57 ms -10.11 ms
fb47c4a+dirty 1243.40 ms 1245.86 ms 2.46 ms
7eff2d7+dirty 1224.84 ms 1227.94 ms 3.10 ms
3c99746+dirty 1227.65 ms 1228.81 ms 1.16 ms

App size

Revision Plain With Sentry Diff
f870f2d+dirty 3.19 MiB 4.36 MiB 1.17 MiB
472960b+dirty 3.19 MiB 4.36 MiB 1.17 MiB
fb47c4a+dirty 3.19 MiB 4.37 MiB 1.18 MiB
7eff2d7+dirty 3.19 MiB 4.36 MiB 1.17 MiB
3c99746+dirty 3.19 MiB 4.35 MiB 1.16 MiB

Previous results on branch: lz/v7/uc-boolean

Startup times

Revision Plain With Sentry Diff
854bf43+dirty 1211.79 ms 1211.21 ms -0.57 ms

App size

Revision Plain With Sentry Diff
854bf43+dirty 3.19 MiB 4.36 MiB 1.17 MiB

@lucas-zimerman lucas-zimerman changed the title (WIP): V7 Uppercase boolean flags V7: Uppercase boolean flags Jul 4, 2025
@lucas-zimerman lucas-zimerman marked this pull request as ready for review July 4, 2025 17:33
@lucas-zimerman lucas-zimerman requested a review from antonis as a code owner July 4, 2025 17:33
Copy link
Collaborator

@antonis antonis left a comment

Choose a reason for hiding this comment

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

Awesome work @lucas-zimerman 🚀
The implementation LGTM. Thank you for the added tests and updating the sample app.
Just added a note on a typo.

Copy link
Collaborator

@antonis antonis left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@antonis antonis merged commit 4513fab into v7 Jul 7, 2025
105 of 107 checks passed
@antonis antonis deleted the lz/v7/uc-boolean branch July 7, 2025 12:07
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