Skip to content

Commit feff2c8

Browse files
Ref(Expo): Update Expo Getting Started docs. (#14936)
<!-- Use this checklist to make sure your PR is ready for merge. You may delete any sections you don't need. --> ## DESCRIBE YOUR PR *Tell us what you're changing and why. If your PR **resolves an issue**, please link it so it closes automatically.* Issue: getsentry/sentry-react-native#5127 In short, the PR adds the missing setup for Expo in regard to session replay and logs. ## IS YOUR CHANGE URGENT? Help us prioritize incoming PRs by letting us know when the change needs to go live. - [ ] Urgent deadline (GA date, etc.): <!-- ENTER DATE HERE --> - [ ] Other deadline: <!-- ENTER DATE HERE --> - [x] None: Not urgent, can wait up to 1 week+ ## SLA - Teamwork makes the dream work, so please add a reviewer to your PRs. - Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it. Thanks in advance for your help! ## PRE-MERGE CHECKLIST *Make sure you've checked the following before merging your changes:* - [ ] Checked Vercel preview for correctness, including links - [ ] PR was reviewed and approved by any necessary SMEs (subject matter experts) - [ ] PR was reviewed and approved by a member of the [Sentry docs team](https://github.com/orgs/getsentry/teams/docs) ## EXTRA RESOURCES - [Sentry Docs contributor guide](https://docs.sentry.io/contributing/)
1 parent 89d683b commit feff2c8

File tree

1 file changed

+13
-0
lines changed
  • docs/platforms/react-native/manual-setup

1 file changed

+13
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ pnpm add @sentry/react-native
6161
'error-monitoring',
6262
'performance',
6363
'profiling',
64+
'session-replay',
65+
"logs",
6466
]}
6567
/>
6668

@@ -82,11 +84,22 @@ Sentry.init({
8284
// https://docs.sentry.io/platforms/react-native/configuration/options/#traces-sample-rate
8385
tracesSampleRate: 1.0,
8486
// ___PRODUCT_OPTION_END___ performance
87+
// ___PRODUCT_OPTION_START___ logs
88+
// Enable logs to be sent to Sentry
89+
// Learn more at https://docs.sentry.io/platforms/react-native/logs/
90+
enableLogs: true,
91+
// ___PRODUCT_OPTION_END___ logs
8592
// ___PRODUCT_OPTION_START___ profiling
8693
// profilesSampleRate is relative to tracesSampleRate.
8794
// Here, we'll capture profiles for 100% of transactions.
8895
profilesSampleRate: 1.0,
8996
// ___PRODUCT_OPTION_END___ profiling
97+
// ___PRODUCT_OPTION_START___ session-replay
98+
// Record session replays for 100% of errors and 10% of sessions
99+
replaysOnErrorSampleRate: 1.0,
100+
replaysSessionSampleRate: 0.1,
101+
integrations: [Sentry.mobileReplayIntegration()],
102+
// ___PRODUCT_OPTION_END___ session-replay
90103
});
91104

92105
function RootLayout() {

0 commit comments

Comments
 (0)