Sentry
Setup Sentry
Gather Relevant Information
You need the following information:
- DSN:
- Organization:
- Project:
Configure App
Go to apps/native/app/_layout.tsx
and update the dsn
to your DSN.
Sentry.init({
dsn: "https://....ingest.us.sentry.io/...",
Go to apps/native/app.config.ts
and update the Sentry plugin with your org and project:
[
"@sentry/react-native/expo",
{
url: "https://sentry.io/",
project: "<your-project-here>",
organization: "<your-org-here>",
note: "Use SENTRY_AUTH_TOKEN env to authenticate with Sentry.",
},
],
Setup the SENTRY_AUTH_TOKEN
in EAS Secrets if you plan on using EAS. This will allow EAS to upload your sourcemaps for debugging towards the end of the build process. This will allow Sentry to show you exactly where the errors are coming from in the code in production.