Skip to content

Commit 9dcdb3e

Browse files
minor fixes
1 parent 66a6767 commit 9dcdb3e

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

docs/platforms/apple/common/migration/index.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ For more information, see the <PlatformLink to="/profiling/#enable-ui-profiling"
8282
- `defaultIntegrations()`
8383
- `enableTracing` (use `tracesSampleRate` or `tracesSampler` instead)
8484
- `getStoreEndpoint()`
85+
- `enablePerformanceV2` the behavior of this option is now enabled by default.
8586

8687
#### Behavioral Breaking Changes
8788

@@ -104,7 +105,7 @@ For more information, see the <PlatformLink to="/profiling/#enable-ui-profiling"
104105
We removed the following deprecated APIs:
105106

106107
- `SentrySpan.setExtraValue(_:forKey:)`
107-
- User feedback API (use the new feedback API instead)
108+
- User feedback API (use the new [feedback API instead](platforms/apple/guides/ios/user-feedback/))
108109
- `Scope.useSpan()` (use `Scope.span` instead)
109110
- `SentryDebugMeta.uuid` (use `debugID` instead)
110111
- `SentryDebugMeta.name` (use `codeFile` instead)

docs/platforms/apple/common/tracing/instrumentation/automatic-instrumentation.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,15 +118,15 @@ The Cocoa SDK creates the following app start spans:
118118
- **Runtime Init to Pre Main Initializers**: from runtime init to pre main initializers.
119119
- **UIKit Init**: from pre main initializers to the when starting the Sentry Cocoa SDK.
120120
- **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.
122122
123123
![App Start Transaction](./img/app-start-transaction.png)
124124
125125
Cold and warm start are Mobile Vitals, which you can learn about in the [full documentation](/product/insights/mobile/mobile-vitals).
126126
127127
### Prewarmed App Start Tracing
128128
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.
130130
131131
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.
132132
@@ -139,14 +139,14 @@ With this feature, the SDK differentiates between four different app start types
139139
140140
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`.
141141
142-
To enable prewarmed app start tracing:
142+
To enable prewarmed app start tracing (only needed for versions prior to 9.0.0):
143143
144144
```swift {tabTitle:Swift}
145145
import Sentry
146146
147147
SentrySDK.start { options in
148148
options.dsn = "___PUBLIC_DSN___"
149-
options.enablePreWarmedAppStartTracing = true
149+
options.enablePreWarmedAppStartTracing = true // Enabled by default in 9.0.0+
150150
}
151151
```
152152

@@ -155,7 +155,7 @@ SentrySDK.start { options in
155155

156156
[SentrySDK startWithConfigureOptions:^(SentryOptions *options) {
157157
options.dsn = @"___PUBLIC_DSN___";
158-
options.enablePreWarmedAppStartTracing = YES;
158+
options.enablePreWarmedAppStartTracing = YES; // Enabled by default in 9.0.0+
159159
}];
160160
```
161161

0 commit comments

Comments
 (0)