Skip to content

Commit e44d5fb

Browse files
feat(apple): Add sendDefaultPII to onboarding docs (#12771)
Add the sendDefaultPII option to true for onboarding docs to provide more value out of the box. Fixes GH-12752
1 parent 23a8b44 commit e44d5fb

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

docs/platforms/apple/common/configuration/options.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ It's crucial for developers to understand that the OS sends a SIGTERM to their a
9999

100100
<ConfigKey name="send-default-pii">
101101

102-
If this flag is enabled, certain personally identifiable information (PII) is added by active integrations. By default, no such data is sent.
102+
If this flag is enabled, certain personally identifiable information <PlatformLink to="/data-management/data-collected/">(PII)</PlatformLink> is added by active integrations. By default, no such data is sent.
103103

104104
<Alert>
105105

docs/platforms/apple/common/index.mdx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ func application(_ application: UIApplication,
100100
// Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
101101
// We recommend adjusting this value in production.
102102
options.tracesSampleRate = 1.0
103+
104+
// Adds IP for users.
105+
// For more information, visit: https://docs.sentry.io/platforms/apple/data-management/data-collected/
106+
options.sendDefaultPii = true
103107
}
104108

105109
// Manually call startProfiler and stopProfiler to profile any code that runs in between.
@@ -129,6 +133,10 @@ func application(_ application: UIApplication,
129133
// Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
130134
// We recommend adjusting this value in production.
131135
options.tracesSampleRate = @1.0;
136+
137+
// Adds IP for users.
138+
// For more information, visit: https://docs.sentry.io/platforms/apple/data-management/data-collected/
139+
options.sendDefaultPii = YES
132140
}];
133141

134142
// Manually call startProfiler and stopProfiler to profile any code that runs in between.
@@ -163,6 +171,10 @@ struct SwiftUIApp: App {
163171
// Sample rate for profiling, applied on top of TracesSampleRate.
164172
// We recommend adjusting this value in production.
165173
options.profilesSampleRate = 1.0
174+
175+
// Adds IP for users.
176+
// For more information, visit: https://docs.sentry.io/platforms/apple/data-management/data-collected/
177+
options.sendDefaultPii = true
166178
}
167179
}
168180
}
@@ -184,6 +196,10 @@ func application(_ application: UIApplication,
184196
// Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
185197
// We recommend adjusting this value in production.
186198
options.tracesSampleRate = 1.0
199+
200+
// Adds IP for users.
201+
// For more information, visit: https://docs.sentry.io/platforms/apple/data-management/data-collected/
202+
options.sendDefaultPii = true
187203
}
188204

189205
return true
@@ -202,6 +218,10 @@ func application(_ application: UIApplication,
202218
// Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
203219
// We recommend adjusting this value in production.
204220
options.tracesSampleRate = @1.0;
221+
222+
// Adds IP for users.
223+
// For more information, visit: https://docs.sentry.io/platforms/apple/data-management/data-collected/
224+
options.sendDefaultPii = YES
205225
}];
206226

207227
return YES;
@@ -221,6 +241,10 @@ struct SwiftUIApp: App {
221241
// Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.
222242
// We recommend adjusting this value in production.
223243
options.tracesSampleRate = 1.0
244+
245+
// Adds IP for users.
246+
// For more information, visit: https://docs.sentry.io/platforms/apple/data-management/data-collected/
247+
options.sendDefaultPii = true
224248
}
225249
}
226250
}

0 commit comments

Comments
 (0)