Skip to content

Commit

Permalink
refactor(sentry): Teach sentry to do less in production (#1018)
Browse files Browse the repository at this point in the history
  • Loading branch information
NigelBreslaw authored Mar 28, 2024
1 parent e5c41b5 commit 8caeb95
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions native/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,12 @@ const routingInstrumentation = new Sentry.ReactNavigationInstrumentation({
Sentry.init({
dsn: "https://7db2c06ee6ea56cae40a5bd963bad76b:7d7182201a659982c7b30a4512d4ad7a@o4506899216728065.ingest.us.sentry.io/4506899221970944",

// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// We recommend adjusting this value in production
tracesSampleRate: 1.0,
// Capture 100% of transactions in development, and 10% in production
tracesSampleRate: process.env.NODE_ENV === "development" ? 1.0 : 0.1,
enabled: process.env.NODE_ENV !== "development",
integrations: [new Sentry.ReactNativeTracing({ routingInstrumentation })],
_experiments: {
// profilesSampleRate is relative to tracesSampleRate.
// Here, we'll capture profiles for 100% of transactions.
profilesSampleRate: 1.0,
},
});
Expand Down

0 comments on commit 8caeb95

Please sign in to comment.