-
-
Notifications
You must be signed in to change notification settings - Fork 448
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
Fix: Detect App Cold start correctly for Hybrid SDKs #1855
Conversation
@@ -18,7 +18,7 @@ | |||
private @Nullable Long appStartEndMillis; | |||
|
|||
/** The type of App start coldStart=true -> Cold start, coldStart=false -> Warm start */ | |||
private boolean coldStart; | |||
private @Nullable Boolean coldStart = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we kinda have 3 states now for this: unset, cold, warm - should we introduce an enum rather?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, enum
is more expensive but it makes sense, since this is internal, I will make it in another PR to unblock this one and cut a release
Codecov Report
@@ Coverage Diff @@
## main #1855 +/- ##
=========================================
Coverage 75.51% 75.51%
Complexity 2239 2239
=========================================
Files 225 225
Lines 8001 8001
Branches 846 846
=========================================
Hits 6042 6042
Misses 1549 1549
Partials 410 410 Continue to review full report at Codecov.
|
📜 Description
Fix: Detect App Cold start correctly for Hybrid SDKs
💡 Motivation and Context
getsentry/sentry-react-native#1968
💚 How did you test it?
📝 Checklist
🔮 Next steps