Skip to content

Commit f289ad6

Browse files
feat(apple): Clarify ViewController Methods (#4241)
Clarify for which view controller methods the SDK adds spans, as this changed with Cocoa 7.4.3. Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
1 parent 9a41da7 commit f289ad6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ The HTTP instrumentation can lead to crashes due to a bug in the SDK, see [GitHu
2121

2222
This feature is available for iOS, tvOS, and Mac Catalyst, and only works for UIViewControllers.
2323

24-
The UIViewController Instrumentation, once enabled, captures transactions whenever your app loads a ViewController. 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`. The SDK creates spans to provide insight into the length of time each consumed by each of the following methods.
24+
The UIViewController Instrumentation, once enabled, captures transactions whenever your app loads a ViewController. 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`.
25+
26+
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.
2527

2628
![UIViewController Transaction](ui-view-controller-transaction.png)
2729

0 commit comments

Comments
 (0)