Skip to content

Ref: Use main carrier on useEncodePolyfill #4731

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 38 commits into from
Apr 15, 2025
Merged

Ref: Use main carrier on useEncodePolyfill #4731

merged 38 commits into from
Apr 15, 2025

Conversation

lucas-zimerman
Copy link
Collaborator

@lucas-zimerman lucas-zimerman commented Apr 7, 2025

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

The SDK recommends using getMainCarrier on Sentry JavaScript V9 at any moment that we try to get __SENTRY__. This PR implements the required logic to use the recommended carrier.

💡 Motivation and Context

Fixes #4730

💚 How did you test it?

Localy on an Android device.

📝 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

#skip-changelog

Copy link
Contributor

github-actions bot commented Apr 7, 2025

iOS (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1236.59 ms 1251.28 ms 14.69 ms
Size 3.19 MiB 4.32 MiB 1.13 MiB

Baseline results on branch: v7

Startup times

Revision Plain With Sentry Diff
9da5c4e+dirty 1215.41 ms 1226.38 ms 10.97 ms

App size

Revision Plain With Sentry Diff
9da5c4e+dirty 3.19 MiB 4.33 MiB 1.14 MiB

Copy link
Contributor

github-actions bot commented Apr 7, 2025

iOS (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1213.53 ms 1223.09 ms 9.55 ms
Size 2.63 MiB 3.75 MiB 1.12 MiB

Baseline results on branch: v7

Startup times

Revision Plain With Sentry Diff
9da5c4e+dirty 1231.84 ms 1235.49 ms 3.65 ms

App size

Revision Plain With Sentry Diff
9da5c4e+dirty 2.63 MiB 3.76 MiB 1.13 MiB

@lucas-zimerman lucas-zimerman marked this pull request as ready for review April 7, 2025 18:59
Copy link
Contributor

github-actions bot commented Apr 7, 2025

Android (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 440.66 ms 445.71 ms 5.05 ms
Size 17.75 MiB 20.15 MiB 2.40 MiB

Baseline results on branch: v7

Startup times

Revision Plain With Sentry Diff
9da5c4e 478.08 ms 467.46 ms -10.63 ms

App size

Revision Plain With Sentry Diff
9da5c4e 17.75 MiB 20.16 MiB 2.41 MiB

Copy link
Contributor

github-actions bot commented Apr 7, 2025

Android (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 390.78 ms 377.41 ms -13.37 ms
Size 7.15 MiB 8.41 MiB 1.26 MiB

Baseline results on branch: v7

Startup times

Revision Plain With Sentry Diff
9da5c4e+dirty 399.70 ms 407.34 ms 7.64 ms

App size

Revision Plain With Sentry Diff
9da5c4e+dirty 7.15 MiB 8.42 MiB 1.27 MiB

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.

The changes LGTM and aligned with the previous discussion and the function doc

Copy link
Member

@krystofwoldrich krystofwoldrich left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

Base automatically changed from lz/bump/jsv9 to v7 April 15, 2025 08:26
@lucas-zimerman lucas-zimerman merged commit 99b2852 into v7 Apr 15, 2025
64 checks passed
@lucas-zimerman lucas-zimerman deleted the lz/jsv9/carrier branch April 15, 2025 16:42
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