Skip to content

feat(init): Load options from sentry.options.json in JS #4510

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 49 commits into from
Feb 6, 2025

Conversation

krystofwoldrich
Copy link
Member

This PR adds merging of the file options loaded by the Sentry Metro Plugin and user-supplied options in the Sentry.init.

krystofwoldrich and others added 30 commits January 14, 2025 13:47
Copy link
Contributor

github-actions bot commented Feb 5, 2025

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

Generated by 🚫 dangerJS against f740d57

Copy link
Contributor

github-actions bot commented Feb 5, 2025

Android (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 455.76 ms 444.62 ms -11.14 ms
Size 17.75 MiB 20.11 MiB 2.37 MiB

Baseline results on branch: capture-app-start-errors

Startup times

Revision Plain With Sentry Diff
555070f 438.67 ms 428.30 ms -10.37 ms
5625ce7 476.74 ms 488.24 ms 11.50 ms
208f4af 439.23 ms 427.31 ms -11.92 ms
18a5066 427.89 ms 436.47 ms 8.57 ms
b75148e 440.04 ms 421.36 ms -18.68 ms

App size

Revision Plain With Sentry Diff
555070f 17.75 MiB 20.11 MiB 2.37 MiB
5625ce7 17.75 MiB 20.11 MiB 2.37 MiB
208f4af 17.75 MiB 20.11 MiB 2.37 MiB
18a5066 17.75 MiB 20.11 MiB 2.37 MiB
b75148e 17.75 MiB 20.11 MiB 2.37 MiB

Copy link
Contributor

github-actions bot commented Feb 5, 2025

iOS (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1231.28 ms 1226.59 ms -4.69 ms
Size 2.63 MiB 3.70 MiB 1.06 MiB

Baseline results on branch: capture-app-start-errors

Startup times

Revision Plain With Sentry Diff
555070f+dirty 1213.59 ms 1217.79 ms 4.20 ms
208f4af+dirty 1209.44 ms 1217.13 ms 7.70 ms
b75148e+dirty 1221.53 ms 1220.85 ms -0.68 ms
5625ce7+dirty 1226.98 ms 1217.77 ms -9.21 ms
18a5066+dirty 1218.00 ms 1212.27 ms -5.73 ms

App size

Revision Plain With Sentry Diff
555070f+dirty 2.63 MiB 3.69 MiB 1.05 MiB
208f4af+dirty 2.63 MiB 3.69 MiB 1.05 MiB
b75148e+dirty 2.63 MiB 3.69 MiB 1.06 MiB
5625ce7+dirty 2.63 MiB 3.70 MiB 1.06 MiB
18a5066+dirty 2.63 MiB 3.70 MiB 1.06 MiB

Copy link
Contributor

github-actions bot commented Feb 5, 2025

iOS (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1227.63 ms 1223.46 ms -4.17 ms
Size 3.19 MiB 4.26 MiB 1.08 MiB

Baseline results on branch: capture-app-start-errors

Startup times

Revision Plain With Sentry Diff
555070f+dirty 1223.61 ms 1227.57 ms 3.96 ms
208f4af+dirty 1213.08 ms 1223.82 ms 10.73 ms
b75148e+dirty 1202.72 ms 1212.04 ms 9.32 ms
5625ce7+dirty 1219.73 ms 1223.80 ms 4.07 ms
18a5066+dirty 1244.20 ms 1251.54 ms 7.34 ms

App size

Revision Plain With Sentry Diff
555070f+dirty 3.19 MiB 4.25 MiB 1.06 MiB
208f4af+dirty 3.19 MiB 4.25 MiB 1.06 MiB
b75148e+dirty 3.19 MiB 4.25 MiB 1.07 MiB
5625ce7+dirty 3.19 MiB 4.26 MiB 1.08 MiB
18a5066+dirty 3.19 MiB 4.26 MiB 1.08 MiB

@krystofwoldrich krystofwoldrich marked this pull request as ready for review February 5, 2025 13:42
Copy link
Contributor

github-actions bot commented Feb 5, 2025

Android (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 363.53 ms 426.45 ms 62.92 ms
Size 7.15 MiB 8.38 MiB 1.23 MiB

Baseline results on branch: capture-app-start-errors

Startup times

Revision Plain With Sentry Diff
208f4af+dirty 346.93 ms 402.77 ms 55.84 ms
b75148e+dirty 428.91 ms 461.26 ms 32.35 ms
18a5066+dirty 370.06 ms 414.10 ms 44.04 ms
5625ce7+dirty 358.15 ms 416.65 ms 58.50 ms
555070f+dirty 388.25 ms 424.44 ms 36.19 ms

App size

Revision Plain With Sentry Diff
208f4af+dirty 7.15 MiB 8.38 MiB 1.23 MiB
b75148e+dirty 7.15 MiB 8.38 MiB 1.23 MiB
18a5066+dirty 7.15 MiB 8.38 MiB 1.23 MiB
5625ce7+dirty 7.15 MiB 8.38 MiB 1.23 MiB
555070f+dirty 7.15 MiB 8.38 MiB 1.23 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.

LGTM and works as expected 🚀
Thank you for the detailed test cases 🙇

@krystofwoldrich krystofwoldrich merged commit 15a7e6d into capture-app-start-errors Feb 6, 2025
66 checks passed
@krystofwoldrich krystofwoldrich deleted the kw-read-options-in-js branch February 6, 2025 10:48
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