From 9467eb242f2cbfee150b5fc14a61c0f395510ff2 Mon Sep 17 00:00:00 2001 From: Philipp Hofmann Date: Tue, 31 May 2022 12:03:59 +0200 Subject: [PATCH] feat(apple): Add UI instrumentation to wizard --- src/wizard/apple/ios.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/wizard/apple/ios.md b/src/wizard/apple/ios.md index 5e3724d639b01..f36f20c0d1a6e 100644 --- a/src/wizard/apple/ios.md +++ b/src/wizard/apple/ios.md @@ -94,6 +94,19 @@ transaction.finish() // Mark the transaction as finished and send it to Sentry Check out [the documentation](https://docs.sentry.io/platforms/apple/performance/instrumentation/) to learn more about the API and automatic instrumentations. -> Want to play with some new features? Try out our experimental auto instrumentation for [file I/O](/platforms/apple/performance/instrumentation/automatic-instrumentation/#file-io-instrumentation) and [Core Data](/platforms/apple/performance/instrumentation/automatic-instrumentation/#core-data-instrumentation). Experimental features are still a work-in-progress and may have bugs. We recognize the irony. +> Want to play with some new features? Try out our experimental auto instrumentation for [file I/O](/platforms/apple/performance/instrumentation/automatic-instrumentation/#file-io-instrumentation), [Core Data](/platforms/apple/performance/instrumentation/automatic-instrumentation/#core-data-instrumentation), and [User Interaction Instrumentation](/platforms/apple/performance/instrumentation/automatic-instrumentation/#user-interaction-instrumentation). Experimental features are still a work-in-progress and may have bugs. We recognize the irony. > > Let us know if you have feedback through [GitHub issues](https://github.com/getsentry/sentry-cocoa/issues). + +```swift {tabTitle:Swift} +import Sentry + +SentrySDK.start { options in + // ... + + // Enable all experimental auto instrumentation features + options.enableFileIOTracking = true + options.enableCoreDataTracking = true + options.enableUserInteractionTracing = true +} +```