add profiles sampling to sentry (#1237)

zio/stable
Ansh 2023-08-21 16:49:59 -07:00 committed by GitHub
parent 4cc2695d84
commit 88357d5c82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -15,6 +15,11 @@ Sentry.init({
environment: __DEV__ ? 'development' : 'production', // Set the environment
enableAutoPerformanceTracking: true, // Enable auto performance tracking
tracesSampleRate: 0.5, // Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring. // TODO: this might be too much in production
_experiments: {
// The sampling rate for profiling is relative to TracesSampleRate.
// In this case, we'll capture profiles for 50% of transactions.
profilesSampleRate: 0.5,
},
integrations: isNative
? [
new Sentry.Native.ReactNativeTracing({