Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Detect App Cold start correctly for Hybrid SDKs #1855

Merged
merged 9 commits into from
Dec 21, 2021

Conversation

marandaneto
Copy link
Contributor

@marandaneto marandaneto commented Dec 20, 2021

馃摐 Description

Fix: Detect App Cold start correctly for Hybrid SDKs

馃挕 Motivation and Context

getsentry/sentry-react-native#1968

馃挌 How did you test it?

馃摑 Checklist

  • I reviewed the submitted code
  • I added tests to verify the changes
  • I updated the docs if needed
  • No breaking changes

馃敭 Next steps

@marandaneto marandaneto changed the title fix/cold start rn Fix: Detect App Cold start correctly for Hybrid SDKs Dec 20, 2021
@@ -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;
Copy link
Member

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?

Copy link
Contributor Author

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-commenter
Copy link

Codecov Report

Merging #1855 (a04704e) into main (87d310e) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            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.

Legend - Click here to learn more
螖 = absolute <relative> (impact), 酶 = not affected, ? = missing data
Powered by Codecov. Last update 87d310e...a04704e. Read the comment docs.

@marandaneto marandaneto merged commit b1ae1c8 into main Dec 21, 2021
@marandaneto marandaneto deleted the fix/cold-start-rn branch December 21, 2021 05:50
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.

None yet

3 participants