[Statsig] Send Discover aggregate interactions (#4599)

This commit is contained in:
dan 2024-06-22 03:54:47 +03:00 committed by GitHub
parent 7db8dd8980
commit 1715afd80e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 125 additions and 1 deletions

View file

@ -115,6 +115,9 @@ const DOWNSAMPLED_EVENTS: Set<keyof LogEvents> = new Set([
'home:feedDisplayed:sampled',
'feed:endReached:sampled',
'feed:refresh:sampled',
'discover:clickthrough:sampled',
'discover:engaged:sampled',
'discover:seen:sampled',
])
const isDownsampledSession = Math.random() < 0.9 // 90% likely