From ec8c36e6146d06ac5ec12d48f04214c5cb6e392b Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Fri, 10 Oct 2025 18:31:38 +0300 Subject: [PATCH] add 10% sample rate to sentry (#9182) --- src/env/common.ts | 4 ++-- src/logger/sentry/setup/index.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/env/common.ts b/src/env/common.ts index 210ad037c8..ef3f80a330 100644 --- a/src/env/common.ts +++ b/src/env/common.ts @@ -21,12 +21,12 @@ export const ENV: string = process.env.EXPO_PUBLIC_ENV export const IS_TESTFLIGHT = ENV === 'testflight' /** - * Indicates whether the app is __DEV__ + * Indicates whether the app is `__DEV__` */ export const IS_DEV = __DEV__ /** - * Indicates whether the app is __DEV__ or TestFlight + * Indicates whether the app is `__DEV__` or TestFlight */ export const IS_INTERNAL = IS_DEV || IS_TESTFLIGHT diff --git a/src/logger/sentry/setup/index.ts b/src/logger/sentry/setup/index.ts index d062f05d2b..4fe07e97e2 100644 --- a/src/logger/sentry/setup/index.ts +++ b/src/logger/sentry/setup/index.ts @@ -29,4 +29,5 @@ init({ * @see https://docs.sentry.io/platforms/react-native/configuration/options/#attach-stacktrace */ attachStacktrace: false, + sampleRate: env.IS_INTERNAL ? 1.0 : 0.1, })