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

Remove the automatic viewAppearing span #2511

Merged
merged 4 commits into from
Dec 13, 2022
Merged

Conversation

kevinrenskers
Copy link
Contributor

@kevinrenskers kevinrenskers commented Dec 12, 2022

📜 Description

Deleting code 🎉

💡 Motivation and Context

Closes #2510

💚 How did you test it?

Removed the code and made unit tests pass.

📝 Checklist

  • I reviewed the submitted code
  • I added tests to verify the changes
  • I updated the docs if needed
  • Review from the native team if needed
  • No breaking changes -> I guess technically speaking this is a breaking change

🔮 Next steps

@github-actions
Copy link

github-actions bot commented Dec 12, 2022

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1195.96 ms 1232.94 ms 36.98 ms
Size 20.75 KiB 404.99 KiB 384.24 KiB

Baseline results on branch: 8.0.0

Startup times

Revision Plain With Sentry Diff
bbe81cb 1257.25 ms 1272.24 ms 14.99 ms
909e73a 1217.78 ms 1229.70 ms 11.92 ms
a9e77dc 1231.94 ms 1254.85 ms 22.91 ms
a9db8a6 1199.83 ms 1234.56 ms 34.73 ms
6b8ec2a 1229.15 ms 1253.80 ms 24.65 ms
88ac2c2 1223.04 ms 1243.12 ms 20.08 ms
7f1b08e 1252.20 ms 1257.70 ms 5.50 ms
bc27163 1215.45 ms 1249.46 ms 34.01 ms
4dc66f6 1202.59 ms 1228.34 ms 25.75 ms
f8045b6 1226.25 ms 1252.41 ms 26.16 ms

App size

Revision Plain With Sentry Diff
bbe81cb 20.75 KiB 381.81 KiB 361.06 KiB
909e73a 20.75 KiB 383.40 KiB 362.65 KiB
a9e77dc 20.75 KiB 379.12 KiB 358.36 KiB
a9db8a6 20.75 KiB 383.37 KiB 362.62 KiB
6b8ec2a 20.75 KiB 405.10 KiB 384.34 KiB
88ac2c2 20.75 KiB 373.61 KiB 352.86 KiB
7f1b08e 20.75 KiB 383.31 KiB 362.55 KiB
bc27163 20.75 KiB 405.10 KiB 384.34 KiB
4dc66f6 20.75 KiB 381.81 KiB 361.06 KiB
f8045b6 20.75 KiB 404.83 KiB 384.08 KiB

Previous results on branch: 2510/remove-viewAppearing

Startup times

Revision Plain With Sentry Diff
712818b 1232.64 ms 1242.72 ms 10.08 ms
b58f4a9 1224.69 ms 1250.80 ms 26.11 ms
f172a25 1205.31 ms 1239.74 ms 34.43 ms

App size

Revision Plain With Sentry Diff
712818b 20.75 KiB 405.01 KiB 384.25 KiB
b58f4a9 20.75 KiB 404.99 KiB 384.24 KiB
f172a25 20.75 KiB 405.01 KiB 384.26 KiB

@codecov
Copy link

codecov bot commented Dec 12, 2022

Codecov Report

Merging #2511 (5663302) into 8.0.0 (0ccb7ce) will decrease coverage by 0.13%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##            8.0.0    #2511      +/-   ##
==========================================
- Coverage   78.55%   78.42%   -0.14%     
==========================================
  Files         242      241       -1     
  Lines       22288    22273      -15     
  Branches     9844     9835       -9     
==========================================
- Hits        17508    17467      -41     
- Misses       4331     4353      +22     
- Partials      449      453       +4     
Impacted Files Coverage Δ
.../Sentry/SentryUIViewControllerPerformanceTracker.m 98.55% <ø> (-0.10%) ⬇️
Sources/Sentry/SentryProfilingLogging.mm 0.00% <0.00%> (-51.86%) ⬇️
Sources/Sentry/include/SentryProfilingLogging.hpp 45.45% <0.00%> (-9.10%) ⬇️
Sources/Sentry/SentryTime.mm 57.89% <0.00%> (-5.27%) ⬇️
Sources/Sentry/SentryThreadMetadataCache.cpp 91.30% <0.00%> (-4.35%) ⬇️
Sources/Sentry/SentryThreadHandle.cpp 69.39% <0.00%> (-3.28%) ⬇️
Sources/Sentry/SentryThreadInspector.m 95.87% <0.00%> (-2.07%) ⬇️
Sources/Sentry/SentryNetworkTracker.m 95.28% <0.00%> (-0.11%) ⬇️
Sources/Sentry/SentryANRTracker.m 100.00% <0.00%> (ø)
Sources/Sentry/SentryBacktrace.cpp 88.39% <0.00%> (ø)
... and 1 more

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 0ccb7ce...5663302. Read the comment docs.

* 8.0.0:
  test: Fix disabled failing watchdog test (#2521)
  build(deps): bump github/codeql-action from 2.1.35 to 2.1.36 (#2516)
Copy link
Member

@philipphofmann philipphofmann left a comment

Choose a reason for hiding this comment

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

Thanks, it's always great to delete code 😀

@kevinrenskers kevinrenskers merged commit 0c17d16 into 8.0.0 Dec 13, 2022
@kevinrenskers kevinrenskers deleted the 2510/remove-viewAppearing branch December 13, 2022 14:45
kevinrenskers added a commit that referenced this pull request Dec 13, 2022
* 8.0.0:
  Remove the automatic `viewAppearing` span (#2511)
  Fix and reenable testANRDetected_UpdatesAppStateToTrue (#2526)
  fix: Don't add out of date context for crashes (#2523)
  ref: Rename isOOM to watchdog in Client (#2520)

# Conflicts:
#	Sources/Sentry/SentryClient.m
#	Tests/SentryTests/SentryClientTests.swift
kevinrenskers added a commit that referenced this pull request Dec 16, 2022
* 8.0.0: (31 commits)
  tests: Reenable testAddAndRemoveData (#2533)
  feat: support SENTRY_DSN environment var on macOS (#2534)
  Remove duplicate entry (#2532)
  fix: ARC issue for FileManager (#2525)
  feat: Add SwiftUI performance tracking (#2271)
  fix: Remove all permission checks (#2529)
  Remove the automatic `viewAppearing` span (#2511)
  Fix and reenable testANRDetected_UpdatesAppStateToTrue (#2526)
  fix: Don't add out of date context for crashes (#2523)
  ref: Rename isOOM to watchdog in Client (#2520)
  test: Fix disabled failing watchdog test (#2521)
  build(deps): bump github/codeql-action from 2.1.35 to 2.1.36 (#2516)
  Rename the watchdog option and integration (#2513)
  feat: Enable CaptureFailedRequests by default (#2507)
  test: Fix asserts for SentryCrashTestInstallation (#2500)
  meta: User interaction tracing enabled per default (#2506)
  ref: Rename OOM to Watchdog Terminations (#2499)
  feat: enableUserInteractionTracing is GA (#2503)
  build(deps): bump nokogiri from 1.13.9 to 1.13.10 (#2505)
  perf: Don't attach headers for SentryNoOpSpan (#2498)
  ...
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.

Remove viewAppearing span for UIViewController APM
2 participants