diff options
author | Ansh <anshnanda10@gmail.com> | 2023-08-21 16:49:59 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-21 16:49:59 -0700 |
commit | 88357d5c82aa5afd17a846f34d08b1b30ccff761 (patch) | |
tree | 0210f54f69c31f7b463472827b0b29827cc5beab | |
parent | 4cc2695d84181ae51750316a598fb7f910c366c9 (diff) | |
download | voidsky-88357d5c82aa5afd17a846f34d08b1b30ccff761.tar.zst |
add profiles sampling to sentry (#1237)
-rw-r--r-- | src/lib/sentry.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/sentry.ts b/src/lib/sentry.ts index c5d1d3eb6..5448415ff 100644 --- a/src/lib/sentry.ts +++ b/src/lib/sentry.ts @@ -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({ |