Skip to content

Commit 5af8f6d

Browse files
Add sendDefaultPii: true to React Native init code snippets
1 parent b68ec31 commit 5af8f6d

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

docs/platforms/react-native/index.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ Sentry.init({
7878
// profilesSampleRate is relative to tracesSampleRate.
7979
// Here, we'll capture profiles for 100% of transactions.
8080
profilesSampleRate: 1.0,
81+
// Adds more context data to events (IP address, cookies, user, etc.)
82+
// For more information, visit: https://docs.sentry.io/platforms/react-native/data-management/data-collected/
83+
sendDefaultPii: true,
8184
});
8285
```
8386

docs/platforms/react-native/manual-setup/expo.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,18 @@ import * as Sentry from "@sentry/react-native";
6464

6565
Sentry.init({
6666
dsn: "___DSN___",
67-
6867
// Set tracesSampleRate to 1.0 to capture 100%
6968
// of transactions for tracing.
7069
// We recommend adjusting this value in production
7170
// Learn more at
7271
// https://docs.sentry.io/platforms/javascript/configuration/options/#traces-sample-rate
7372
tracesSampleRate: 1.0,
73+
// profilesSampleRate is relative to tracesSampleRate.
74+
// Here, we'll capture profiles for 100% of transactions.
75+
profilesSampleRate: 1.0,
76+
// Adds more context data to events (IP address, cookies, user, etc.)
77+
// For more information, visit: https://docs.sentry.io/platforms/react-native/data-management/data-collected/
78+
sendDefaultPii: true,
7479
});
7580

7681
function App() {

0 commit comments

Comments
 (0)