Skip to content

Commit

Permalink
tweak downsample rate to 1% (#5836)
Browse files Browse the repository at this point in the history
Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
  • Loading branch information
haileyok and surfdude29 authored Oct 18, 2024
1 parent fd2e94f commit 72270fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/statsig/statsig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import {AppState, AppStateStatus} from 'react-native'
import {sha256} from 'js-sha256'
import {Statsig, StatsigProvider} from 'statsig-react-native-expo'

import {BUNDLE_DATE, BUNDLE_IDENTIFIER, IS_TESTFLIGHT} from '#/lib/app-info'
import {logger} from '#/logger'
import {isWeb} from '#/platform/detection'
import * as persisted from '#/state/persisted'
import {BUNDLE_DATE, BUNDLE_IDENTIFIER, IS_TESTFLIGHT} from 'lib/app-info'
import {useSession} from '../../state/session'
import {timeout} from '../async/timeout'
import {useNonReactiveCallback} from '../hooks/useNonReactiveCallback'
Expand Down Expand Up @@ -89,7 +89,7 @@ export function toClout(n: number | null | undefined): number | undefined {
}
}

const DOWNSAMPLE_RATE = 0.95 // 95% likely
const DOWNSAMPLE_RATE = 0.99 // 99% likely
const DOWNSAMPLED_EVENTS: Set<keyof LogEvents> = new Set([
'router:navigate:notifications:sampled',
'state:background:sampled',
Expand Down

0 comments on commit 72270fd

Please sign in to comment.