Skip to content

Commit d0b1592

Browse files
fix(apple): UIViewController wording (#4899)
Improve the wording for UIViewControllers a bit, because the wording was a bit confusing for some people.
1 parent 782d45f commit d0b1592

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/platforms/apple/common/performance/instrumentation/automatic-instrumentation.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ Capturing transactions requires that you first <PlatformLink to="/performance/">
1414

1515
This feature is available for iOS, tvOS, and Mac Catalyst, and only works for UIViewControllers.
1616

17-
The UIViewController Instrumentation, once enabled, captures transactions whenever your app loads an in-app UIViewController, meaning it doesn't capture transactions of UIKits UIViewControllers, other third-party libraries, or SwiftUI. The SDK sets the transaction name to the name of the ViewController, including the module — for example, `Your_App.MainViewController` — and the transaction operation to `ui.load`.
17+
The UIViewController Instrumentation, once enabled, captures transactions when your app loads an [UIViewController][UIViewController], which is in-app and a subclass of UIViewController. Nevertheless, the SDK doesn't capture transactions for UIViewControllers of third-party libraries or SwiftUI.
18+
The SDK sets the transaction name to the name of the ViewController, including the module — for example, `Your_App.MainViewController` — and the transaction operation to `ui.load`.
1819

1920
The SDK creates spans to provide insight into the time consumed by each of the methods shown in the screenshot below. Due to implementation limitations, the SDK only adds a span for loadView if the instrumented view controller implements it. The SDK adds spans for all other methods, whether you implement them in your view controller or not.
2021

@@ -40,6 +41,8 @@ SentrySDK.start { options in
4041
}];
4142
```
4243
44+
[UIViewController]: https://developer.apple.com/documentation/uikit/uiviewcontroller
45+
4346
## App Start Instrumentation
4447
4548
This feature is available for iOS, tvOS, and Mac Catalyst.

0 commit comments

Comments
 (0)