Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Sep 7, 2024

Conversation

haileyok
Copy link
Contributor

@haileyok haileyok commented Sep 6, 2024

Why

We want to do more downsampling of some events, because they are really noisy. Here we go! Doing two things here:

  • Tweaking the downsample rate from 90% to 95%
  • Remove navigation event, but continue recording navigation to the notifications tab
  • Adding some more events for downsampling:
    • 'post:like:sampled'
    • 'post:unlike:sampled'
    • 'post:repost:sampled'
    • 'post:unrepost:sampled'
    • 'profile:follow:sampled'
    • 'profile:unfollow:sampled'
  • Adding downsampleRate to downsampled event metadata

Test Plan

This is a pretty simple change that is mostly verified by typecheck. Adding sampled to the end of the existing events handles downsampling for us with existing logic.

Testing that the metadata is being added can be done by just changing isDownsampledSession to false, then checking the network logs for something like post like (you'll need to spam some likes, doing it on a single post works).

Screenshot 2024-09-06 at 3 39 12 PM

Copy link

render bot commented Sep 6, 2024

Copy link

github-actions bot commented Sep 6, 2024

Old size New size Diff
7.1 MB 7.1 MB 212 B (0.00%)

@haileyok haileyok requested a review from gaearon September 6, 2024 22:42
@haileyok haileyok marked this pull request as ready for review September 6, 2024 22:43
Copy link
Collaborator

@gaearon gaearon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@gaearon gaearon merged commit c8be9b7 into main Sep 7, 2024
6 checks passed
@gaearon gaearon deleted the hailey/statsig-sampling branch September 7, 2024 11:13
estrattonbailey added a commit that referenced this pull request Sep 7, 2024
* origin/main:
  Set show_follow_suggestions_in_profile to true (#5205)
  Set fixed_bottom_bar to true (#5203)
  [Statsig] Add more events to downsample, increase downsample rate (#5198)
  fix: remove duplicate style `rounded_sm` (#5201)
  Add cursor pointer to 'New post' button (#5109)
  Add emoji picker to chat composer (#5196)
  [Video] Handle push/pop on Android for autoplay (#5194)
  nvm
  fix action
  Trigger a build maybe
  Fix starter packs scroll (#5190)
  Redesign play button (#5192)
  cleanup
  quick integration of ipcc service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants