Skip to content

Conversation

@philipphofmann
Copy link
Member

📜 Description

Set the default value of enablePreWarmedAppStartTracing to true.

Docs PR getsentry/sentry-docs#15295.

💡 Motivation and Context

Fixes GH-3535

💚 How did you test it?

Unit tests.

📝 Checklist

You have to check all boxes before merging:

  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.

Set the default value of enablePreWarmedAppStartTracing to true.

Fixes GH-3535
@github-actions
Copy link
Contributor

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 4ac4f35

@codecov
Copy link

codecov bot commented Oct 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.963%. Comparing base (fe83264) to head (4ac4f35).
⚠️ Report is 2 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff              @@
##              main     #6508       +/-   ##
=============================================
- Coverage   86.996%   86.963%   -0.034%     
=============================================
  Files          452       452               
  Lines        37691     37678       -13     
  Branches     17488     17478       -10     
=============================================
- Hits         32790     32766       -24     
- Misses        4854      4865       +11     
  Partials        47        47               
Files with missing lines Coverage Δ
Sources/Sentry/SentryOptions.m 97.202% <100.000%> (ø)
...es/Swift/Helper/SentryEnabledFeaturesBuilder.swift 100.000% <ø> (ø)
Sources/Swift/Helper/SentrySdkInfo.swift 100.000% <100.000%> (ø)

... and 8 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fe83264...4ac4f35. Read the comment docs.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Bug: Telemetry Tracking Issue for Default Features

The conditional logic for preWarmedAppStartTracing was removed from both the SDK's features and integrations lists. This prevents the feature from being reported in telemetry, even though it's now enabled by default and can still be explicitly disabled. This creates an inconsistency with how other default-enabled features are tracked.

Sources/Swift/Helper/SentryEnabledFeaturesBuilder.swift#L12-L28

if options.enableCaptureFailedRequests {
features.append("captureFailedRequests")
}
if options.enableTimeToFullDisplayTracing {
features.append("timeToFullDisplayTracing")
}
if options.swiftAsyncStacktraces {
features.append("swiftAsyncStacktraces")
}
if options.enablePersistingTracesWhenCrashing {
features.append("persistingTracesWhenCrashing")
}

Sources/Swift/Helper/SentrySdkInfo.swift#L56-L57

let features = SentryEnabledFeaturesBuilder.getEnabledFeatures(options: options)
let integrations = SentrySDKInternal.currentHub().trimmedInstalledIntegrationNames()

Fix in Cursor Fix in Web


@github-actions
Copy link
Contributor

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1222.35 ms 1261.90 ms 39.55 ms
Size 23.75 KiB 1.01 MiB 1006.46 KiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
5c5648e 1234.44 ms 1253.79 ms 19.35 ms
fb48c9a 1232.49 ms 1266.27 ms 33.78 ms
d72784d 1214.31 ms 1241.35 ms 27.04 ms
7af87c1 1229.31 ms 1253.84 ms 24.53 ms
029a804 1219.65 ms 1241.96 ms 22.30 ms
139db8b 1231.50 ms 1258.19 ms 26.69 ms
7f4bf81 1241.73 ms 1270.66 ms 28.93 ms
83bb978 1238.33 ms 1260.04 ms 21.71 ms
42cfd79 1222.13 ms 1244.23 ms 22.10 ms
aac24ac 1225.94 ms 1256.38 ms 30.45 ms

App size

Revision Plain With Sentry Diff
5c5648e 23.75 KiB 879.60 KiB 855.86 KiB
fb48c9a 23.75 KiB 1006.34 KiB 982.59 KiB
d72784d 23.75 KiB 988.01 KiB 964.27 KiB
7af87c1 23.75 KiB 933.34 KiB 909.59 KiB
029a804 23.75 KiB 928.11 KiB 904.36 KiB
139db8b 23.75 KiB 920.64 KiB 896.89 KiB
7f4bf81 23.75 KiB 919.70 KiB 895.95 KiB
83bb978 23.75 KiB 920.64 KiB 896.89 KiB
42cfd79 23.75 KiB 880.20 KiB 856.45 KiB
aac24ac 23.75 KiB 1019.17 KiB 995.42 KiB

Copy link
Member

@philprime philprime left a comment

Choose a reason for hiding this comment

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

LGTM

@philipphofmann philipphofmann merged commit debf3e9 into main Oct 23, 2025
195 of 197 checks passed
@philipphofmann philipphofmann deleted the feat/prewarmed-app-start-tracing-enabled-per-default branch October 23, 2025 09:08
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.

Turn on enablePreWarmedAppStartTracing by default

3 participants