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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/profiling fixes #1997

Merged
merged 9 commits into from
Apr 26, 2022
Merged

Feat/profiling fixes #1997

merged 9 commits into from
Apr 26, 2022

Conversation

stefanosiano
Copy link
Member

📜 Description

reduced profiling sampling rate from 300hz to 100hz
profiling trace folder is now created regardless of profiling enabled option

💡 Motivation and Context

Manual initialisation happens after profiling traces folder creation, so we were losing profiling when it was set manually, as the traces folder was not being created

💚 How did you test it?

Running a sample with strict mode did not complain about folder creation

📝 Checklist

  • I reviewed the submitted code
  • I added tests to verify the changes
  • No breaking changes

profiling trace folder is now created regardless of profiling enabled option (manual initialisation happens after folder creation, so we were losing profiling, if set manually)
@stefanosiano stefanosiano changed the base branch from main to 6.x.x April 20, 2022 11:20
profiling trace folder is now created regardless of profiling enabled option (manual initialisation happens after folder creation, so we were losing profiling, if set manually)
moved profilingTracesDirPath from SentryAndroidOptions to SentryOptions
@marandaneto
Copy link
Contributor

@romtsn would you like to do a final review? :)

Co-authored-by: Roman Zavarnitsyn <rom4ek93@gmail.com>
@codecov-commenter
Copy link

codecov-commenter commented Apr 26, 2022

Codecov Report

Merging #1997 (4f5246d) into 6.x.x (4eb7640) will decrease coverage by 0.01%.
The diff coverage is 68.75%.

@@             Coverage Diff              @@
##              6.x.x    #1997      +/-   ##
============================================
- Coverage     80.80%   80.79%   -0.02%     
- Complexity     3127     3131       +4     
============================================
  Files           228      228              
  Lines         11603    11619      +16     
  Branches       1552     1555       +3     
============================================
+ Hits           9376     9387      +11     
- Misses         1647     1648       +1     
- Partials        580      584       +4     
Impacted Files Coverage Δ
sentry/src/main/java/io/sentry/Sentry.java 45.06% <61.53%> (+1.43%) ⬆️
sentry/src/main/java/io/sentry/SentryOptions.java 80.88% <100.00%> (+0.16%) ⬆️

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 4eb7640...4f5246d. Read the comment docs.

@stefanosiano stefanosiano merged commit 67a096c into 6.x.x Apr 26, 2022
@stefanosiano stefanosiano deleted the feat/profiling-fixes branch April 26, 2022 10:17
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