File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
docs/platforms/react-native Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -64,13 +64,18 @@ import * as Sentry from "@sentry/react-native";
6464
6565Sentry .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
7681function App () {
You can’t perform that action at this time.
0 commit comments