Setup
apps/app/.env:
Usage
Track Errors
Log Messages
User Context
Breadcrumbs
Direct Sentry Access
Testing
Mock mode: Errors log to console as[MockSentry] Exception: ...
Real Sentry:
- Add DSN to
.env - Trigger an error:
throw new Error('Test error') - View in Sentry Dashboard → Issues
Troubleshooting
Errors not showing in Sentry?- Verify DSN is correct
- Check network connectivity
- Allow a few seconds for upload
- Verify
apps/app/.envhasEXPO_PUBLIC_SENTRY_DSN - Restart Metro:
yarn start --clear

