Skip to content

Conversation

@krystofwoldrich
Copy link
Contributor

@krystofwoldrich krystofwoldrich commented Feb 24, 2023

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

Renames the app start measurement to app_start_warm and keeps the op as app.start.warm to be aligned with the other mobile SDK.

💡 Motivation and Context

Although the mentioned issue is closed and the main cause of the long app start time was resolved in

I believe users are seeing app start times only till sdk version 4.5.0

as the measurement was renamed from app_start_warm to app.start.warm.

💚 How did you test it?

📝 Checklist

  • I reviewed submitted code
  • I added tests to verify changes
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled
  • All tests passing
  • No breaking changes

🔮 Next steps

@krystofwoldrich krystofwoldrich added the Breaking-change should go in a major release (breaks apps, changes default configs in a major way) label Feb 24, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Feb 24, 2023

Android (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 336.06 ms 346.94 ms 10.88 ms
Size 17.73 MiB 20.04 MiB 2.31 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
d197b5c+dirty 338.94 ms 354.87 ms 15.93 ms
9a3ca65+dirty 326.93 ms 330.14 ms 3.21 ms
86d6d2c+dirty 332.90 ms 352.45 ms 19.55 ms

App size

Revision Plain With Sentry Diff
d197b5c+dirty 17.73 MiB 20.04 MiB 2.31 MiB
9a3ca65+dirty 17.73 MiB 20.04 MiB 2.31 MiB
86d6d2c+dirty 17.73 MiB 20.04 MiB 2.31 MiB

Previous results on branch: kw-fix-app-start-measurements-naming

Startup times

Revision Plain With Sentry Diff
d7898dc+dirty 346.04 ms 355.96 ms 9.92 ms

App size

Revision Plain With Sentry Diff
d7898dc+dirty 17.73 MiB 20.04 MiB 2.31 MiB

@github-actions
Copy link
Contributor

github-actions bot commented Feb 24, 2023

iOS (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1244.60 ms 1255.46 ms 10.86 ms
Size 2.36 MiB 2.82 MiB 469.43 KiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
d197b5c+dirty 1217.61 ms 1242.66 ms 25.05 ms
9a3ca65+dirty 1247.06 ms 1274.58 ms 27.52 ms
86d6d2c+dirty 1267.55 ms 1286.21 ms 18.66 ms

App size

Revision Plain With Sentry Diff
d197b5c+dirty 2.36 MiB 2.82 MiB 462.86 KiB
9a3ca65+dirty 2.36 MiB 2.82 MiB 462.89 KiB
86d6d2c+dirty 2.36 MiB 2.82 MiB 462.82 KiB

Previous results on branch: kw-fix-app-start-measurements-naming

Startup times

Revision Plain With Sentry Diff
d7898dc+dirty 1228.84 ms 1240.08 ms 11.24 ms

App size

Revision Plain With Sentry Diff
d7898dc+dirty 2.36 MiB 2.82 MiB 463.19 KiB

@github-actions
Copy link
Contributor

github-actions bot commented Feb 24, 2023

iOS (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1270.10 ms 1280.12 ms 10.02 ms
Size 2.92 MiB 3.37 MiB 464.62 KiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
d197b5c+dirty 1234.80 ms 1249.20 ms 14.40 ms
9a3ca65+dirty 1276.40 ms 1279.14 ms 2.74 ms
86d6d2c+dirty 1291.62 ms 1296.80 ms 5.18 ms

App size

Revision Plain With Sentry Diff
d197b5c+dirty 2.92 MiB 3.37 MiB 464.41 KiB
9a3ca65+dirty 2.92 MiB 3.37 MiB 464.32 KiB
86d6d2c+dirty 2.92 MiB 3.37 MiB 464.31 KiB

Previous results on branch: kw-fix-app-start-measurements-naming

Startup times

Revision Plain With Sentry Diff
d7898dc+dirty 1279.10 ms 1292.68 ms 13.58 ms

App size

Revision Plain With Sentry Diff
d7898dc+dirty 2.92 MiB 3.37 MiB 464.62 KiB

@github-actions
Copy link
Contributor

github-actions bot commented Feb 24, 2023

Android (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 294.18 ms 375.98 ms 81.80 ms
Size 7.15 MiB 8.09 MiB 964.41 KiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
d197b5c+dirty 258.75 ms 313.61 ms 54.86 ms
9a3ca65+dirty 344.96 ms 358.92 ms 13.96 ms
86d6d2c+dirty 267.21 ms 325.24 ms 58.04 ms

App size

Revision Plain With Sentry Diff
d197b5c+dirty 7.15 MiB 8.09 MiB 962.72 KiB
9a3ca65+dirty 7.15 MiB 8.09 MiB 962.83 KiB
86d6d2c+dirty 7.15 MiB 8.09 MiB 962.69 KiB

Previous results on branch: kw-fix-app-start-measurements-naming

Startup times

Revision Plain With Sentry Diff
d7898dc+dirty 336.15 ms 350.71 ms 14.56 ms

App size

Revision Plain With Sentry Diff
d7898dc+dirty 7.15 MiB 8.09 MiB 963.36 KiB

@krystofwoldrich krystofwoldrich removed the Breaking-change should go in a major release (breaks apps, changes default configs in a major way) label Feb 27, 2023
Copy link
Contributor

@marandaneto marandaneto left a comment

Choose a reason for hiding this comment

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

@krystofwoldrich krystofwoldrich enabled auto-merge (squash) March 2, 2023 10:59
@krystofwoldrich krystofwoldrich merged commit 982b55d into main Mar 2, 2023
@krystofwoldrich krystofwoldrich deleted the kw-fix-app-start-measurements-naming branch March 2, 2023 11:07
@fabiendem
Copy link

@krystofwoldrich Are you planning on shipping this in the 4.* version of the SDK?
Or should we consider 4.* as no longer maintained?

Thanks for the fix

@krystofwoldrich
Copy link
Contributor Author

krystofwoldrich commented Mar 6, 2023

@fabiendem v4 is not actively maintained and won't get new features. It might get some critical fixes, but this likely is not one of them.

As the start-up times from the v4 can be viewed as custom measurements if your plan supports it.
https://docs.sentry.io/platforms/python/performance/instrumentation/performance-metrics/#custom-metrics

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.

4 participants