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({
78
78
// profilesSampleRate is relative to tracesSampleRate.
79
79
// Here, we'll capture profiles for 100% of transactions.
80
80
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 ,
81
84
});
82
85
```
83
86
Original file line number Diff line number Diff line change @@ -64,13 +64,18 @@ import * as Sentry from "@sentry/react-native";
64
64
65
65
Sentry .init ({
66
66
dsn: " ___DSN___" ,
67
-
68
67
// Set tracesSampleRate to 1.0 to capture 100%
69
68
// of transactions for tracing.
70
69
// We recommend adjusting this value in production
71
70
// Learn more at
72
71
// https://docs.sentry.io/platforms/javascript/configuration/options/#traces-sample-rate
73
72
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 ,
74
79
});
75
80
76
81
function App () {
You can’t perform that action at this time.
0 commit comments