[Statsig] Add more events to downsample, increase downsample rate (#5198)

* add some events for sampling

* include downsample rate in metadata

* fix metadata logic

* uncomment debug
This commit is contained in:
Hailey 2024-09-07 04:13:51 -07:00 committed by GitHub
parent adef9cff10
commit c8be9b78c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 47 additions and 37 deletions

View file

@ -276,8 +276,8 @@ export function DescriptionPlaceholder() {
export type FollowButtonProps = {
profile: AppBskyActorDefs.ProfileViewBasic
moderationOpts: ModerationOpts
logContext: LogEvents['profile:follow']['logContext'] &
LogEvents['profile:unfollow']['logContext']
logContext: LogEvents['profile:follow:sampled']['logContext'] &
LogEvents['profile:unfollow:sampled']['logContext']
} & Partial<ButtonProps>
export function FollowButton(props: FollowButtonProps) {

View file

@ -15,8 +15,8 @@ export function useFollowMethods({
logContext,
}: {
profile: Shadow<AppBskyActorDefs.ProfileViewBasic>
logContext: LogEvents['profile:follow']['logContext'] &
LogEvents['profile:unfollow']['logContext']
logContext: LogEvents['profile:follow:sampled']['logContext'] &
LogEvents['profile:unfollow:sampled']['logContext']
}) {
const {_} = useLingui()
const requireAuth = useRequireAuth()