@@ -35,6 +35,11 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
3535 SentrySDK.start { options in
3636 options.dsn = "https://example.com/sentry-dsn"
3737 options.debug = true // Enabled debug when first installing is always helpful
38+
39+ // Adds IP for users.
40+ // For more information, visit: https://docs.sentry.io/platforms/apple/data-management/data-collected/
41+ options.sendDefaultPii = true
42+
3843 // Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
3944 // We recommend adjusting this value in production.
4045 options.tracesSampleRate = 1.0
@@ -89,6 +94,11 @@ const validAppDelegateObjCWithSentry = `@import Sentry;
8994 [SentrySDK startWithConfigureOptions:^(SentryOptions * options) {
9095 options.dsn = @"https://example.com/sentry-dsn";
9196 options.debug = YES; // Enabled debug when first installing is always helpful
97+
98+ // Adds IP for users.
99+ // For more information, visit: https://docs.sentry.io/platforms/apple/data-management/data-collected/
100+ options.sendDefaultPii = YES;
101+
92102 // Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
93103 // We recommend adjusting this value in production.
94104 options.tracesSampleRate = @1.0;
@@ -139,6 +149,11 @@ struct TestApp: App {
139149 SentrySDK.start { options in
140150 options.dsn = "https://example.com/sentry-dsn"
141151 options.debug = true // Enabled debug when first installing is always helpful
152+
153+ // Adds IP for users.
154+ // For more information, visit: https://docs.sentry.io/platforms/apple/data-management/data-collected/
155+ options.sendDefaultPii = true
156+
142157 // Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
143158 // We recommend adjusting this value in production.
144159 options.tracesSampleRate = 1.0
0 commit comments