You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/platforms/apple/common/tracing/instrumentation/automatic-instrumentation.mdx
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,15 +118,15 @@ The Cocoa SDK creates the following app start spans:
118
118
- **Runtime Init to Pre Main Initializers**: from runtime init to pre main initializers.
119
119
- **UIKit Init**: from pre main initializers to the when starting the Sentry Cocoa SDK.
120
120
- **Application Init**: this reflects the duration of your AppDelegate `application:didFinishLaunchingWithOptions` method or [App conformer's initializer](<https://developer.apple.com/documentation/swiftui/app/main()>) when using SwiftUI, which is from when starting the Cocoa SDK to the [`didFinishLaunchingNotification`][didfinishlaunching].
121
-
- **Initial Frame Render**: from the [`didFinishLaunchingNotification`][didfinishlaunching] to [`UIWindowDidBecomeVisibleNotification`][uiwindow]. When enabling the option `enablePerformanceV2` this is from the [`didFinishLaunchingNotification`][didfinishlaunching] until the app renders its first frame.
121
+
- **Initial Frame Render**: from the [`didFinishLaunchingNotification`][didfinishlaunching] until the app renders its first frame. **Starting with version 9.0.0, this is the default behavior.** In versions prior to 9.0.0, this measured until [`UIWindowDidBecomeVisibleNotification`][uiwindow] unless you enabled the `enablePerformanceV2` option.
Cold and warm start are Mobile Vitals, which you can learn about in the [full documentation](/product/insights/mobile/mobile-vitals).
126
126
127
127
### Prewarmed App Start Tracing
128
128
129
-
Starting with iOS 15, the operating system might [prewarm](https://developer.apple.com/documentation/uikit/app_and_environment/responding_to_the_launch_of_your_app/about_the_app_launch_sequence#3894431) your app by creating the process before the user opens it. Enable the `enablePreWarmedAppStartTracing` feature to collect prewarmed app starts, which will be enabled by default in V9.
129
+
Starting with iOS 15, the operating system might [prewarm](https://developer.apple.com/documentation/uikit/app_and_environment/responding_to_the_launch_of_your_app/about_the_app_launch_sequence#3894431) your app by creating the process before the user opens it. **Starting with version 9.0.0, the SDK collects prewarmed app starts by default.** For versions prior to 9.0.0, enable the `enablePreWarmedAppStartTracing` feature to collect prewarmed app starts.
130
130
131
131
When the OS prewarms your app process, it already does some of the initialization steps of a normal app start before the user taps the app icon. This can be anywhere from seconds to minutes or hours before your app is fully launched. Therefore, the SDK doesn't add the **Pre Runtime Init** and the **Runtime Init to Pre Main Initializers** spans. This approach shortens the app start duration, but it represents the time from when a user clicks the app icon to when the app is responsive.
132
132
@@ -139,14 +139,14 @@ With this feature, the SDK differentiates between four different app start types
139
139
140
140
You can filter for different app start types in [Discover](/product/explore/discover-queries/) with `app_start_type:cold.prewarmed`, `app_start_type:warm.prewarmed`, `app_start_type:cold`, and `app_start_type:warm`.
141
141
142
-
To enable prewarmed app start tracing:
142
+
To enable prewarmed app start tracing (only needed for versions prior to 9.0.0):
143
143
144
144
```swift {tabTitle:Swift}
145
145
import Sentry
146
146
147
147
SentrySDK.start { options in
148
148
options.dsn = "___PUBLIC_DSN___"
149
-
options.enablePreWarmedAppStartTracing = true
149
+
options.enablePreWarmedAppStartTracing = true // Enabled by default in 9.0.0+
0 commit comments