Skip to content

Commit c73e459

Browse files
fix(apple): Mention class name for APM (#4934)
Mention that the class name of the UIViewController must contain ViewController.
1 parent 19a500d commit c73e459

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ 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 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.
17+
The UIViewController Instrumentation, once enabled, captures transactions when your app loads an [UIViewController][UIViewController], which is in-app, a subclass of UIViewController, and the class name contains `ViewController`. Nevertheless, the SDK doesn't capture transactions for UIViewControllers of third-party libraries or SwiftUI.
1818
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`.
1919

2020
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.

0 commit comments

Comments
 (0)