add 10% sample rate to sentry (#9182)
This commit is contained in:
Vendored
+2
-2
@@ -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
|
||||
|
||||
|
||||
@@ -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,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user