add 10% sample rate to sentry (#9182)

This commit is contained in:
Samuel Newman
2025-10-10 18:31:38 +03:00
committed by GitHub
parent 84cae44cd2
commit ec8c36e614
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -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
+1
View File
@@ -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,
})