Skip to content

Commit d318b09

Browse files
feat(apple): Flag for UIViewControllerTracking (#4859)
1 parent 7b8cc34 commit d318b09

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,26 @@ The SDK creates spans to provide insight into the time consumed by each of the m
2020

2121
![UIViewController Transaction](ui-view-controller-transaction.png)
2222

23+
To disable the UIViewController Instrumentation:
24+
25+
```swift {tabTitle:Swift}
26+
import Sentry
27+
28+
SentrySDK.start { options in
29+
options.dsn = "___PUBLIC_DSN___"
30+
options.enableUIViewControllerTracking = false
31+
}
32+
```
33+
34+
```objc {tabTitle:Objective-C}
35+
@import Sentry;
36+
37+
[SentrySDK startWithConfigureOptions:^(SentryOptions *options) {
38+
options.dsn = @"___PUBLIC_DSN___";
39+
options.enableUIViewControllerTracking = NO;
40+
}];
41+
```
42+
2343
## App Start Instrumentation
2444
2545
This feature is available for iOS, tvOS, and Mac Catalyst.

0 commit comments

Comments
 (0)