[Statsig] Sample noisy events (#4288)
* Sample state:background and state:foreground * Sample feed events * Add DEV protection against forgetting to add events to the list
This commit is contained in:
parent
9431201026
commit
d6275e98c2
7 changed files with 41 additions and 21 deletions
|
|
@ -20,10 +20,10 @@ export type LogEvents = {
|
|||
context: 'StartOnboarding' | 'AfterOnboarding' | 'Login'
|
||||
status: 'granted' | 'denied' | 'undetermined'
|
||||
}
|
||||
'state:background': {
|
||||
'state:background:sampled': {
|
||||
secondsActive: number
|
||||
}
|
||||
'state:foreground': {}
|
||||
'state:foreground:sampled': {}
|
||||
'router:navigate:sampled': {}
|
||||
|
||||
// Screen events
|
||||
|
|
@ -57,18 +57,18 @@ export type LogEvents = {
|
|||
'onboarding:finished:avatarResult': {
|
||||
avatarResult: 'default' | 'created' | 'uploaded'
|
||||
}
|
||||
'home:feedDisplayed': {
|
||||
'home:feedDisplayed:sampled': {
|
||||
feedUrl: string
|
||||
feedType: string
|
||||
index: number
|
||||
reason: 'focus' | 'tabbar-click' | 'pager-swipe' | 'desktop-sidebar-click'
|
||||
}
|
||||
'feed:endReached': {
|
||||
'feed:endReached:sampled': {
|
||||
feedUrl: string
|
||||
feedType: string
|
||||
itemCount: number
|
||||
}
|
||||
'feed:refresh': {
|
||||
'feed:refresh:sampled': {
|
||||
feedUrl: string
|
||||
feedType: string
|
||||
reason: 'pull-to-refresh' | 'soft-reset' | 'load-latest'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue