From 5af8f6de3864529565d9634e11d5afc810e2306b Mon Sep 17 00:00:00 2001 From: Krystof Woldrich Date: Tue, 25 Feb 2025 14:23:46 +0100 Subject: [PATCH] Add `sendDefaultPii: true` to React Native init code snippets --- docs/platforms/react-native/index.mdx | 3 +++ docs/platforms/react-native/manual-setup/expo.mdx | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/platforms/react-native/index.mdx b/docs/platforms/react-native/index.mdx index 116c3cbb56541..e0f24a23c53cb 100644 --- a/docs/platforms/react-native/index.mdx +++ b/docs/platforms/react-native/index.mdx @@ -78,6 +78,9 @@ Sentry.init({ // profilesSampleRate is relative to tracesSampleRate. // Here, we'll capture profiles for 100% of transactions. profilesSampleRate: 1.0, + // Adds more context data to events (IP address, cookies, user, etc.) + // For more information, visit: https://docs.sentry.io/platforms/react-native/data-management/data-collected/ + sendDefaultPii: true, }); ``` diff --git a/docs/platforms/react-native/manual-setup/expo.mdx b/docs/platforms/react-native/manual-setup/expo.mdx index 4490b783383b5..5c2a136ca9f83 100644 --- a/docs/platforms/react-native/manual-setup/expo.mdx +++ b/docs/platforms/react-native/manual-setup/expo.mdx @@ -64,13 +64,18 @@ import * as Sentry from "@sentry/react-native"; Sentry.init({ dsn: "___DSN___", - // Set tracesSampleRate to 1.0 to capture 100% // of transactions for tracing. // We recommend adjusting this value in production // Learn more at // https://docs.sentry.io/platforms/javascript/configuration/options/#traces-sample-rate tracesSampleRate: 1.0, + // profilesSampleRate is relative to tracesSampleRate. + // Here, we'll capture profiles for 100% of transactions. + profilesSampleRate: 1.0, + // Adds more context data to events (IP address, cookies, user, etc.) + // For more information, visit: https://docs.sentry.io/platforms/react-native/data-management/data-collected/ + sendDefaultPii: true, }); function App() {