diff options
author | Hailey <me@haileyok.com> | 2024-09-07 04:13:51 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-07 13:13:51 +0200 |
commit | c8be9b78c6abb1ca98a2e4c9342e314b19d2cb7c (patch) | |
tree | 91b36de19a2e3def4fcb64aeec9cd2b8470ced78 /src/Navigation.tsx | |
parent | adef9cff10eb8cbd5227c1fde0f94068fb6987f6 (diff) | |
download | voidsky-c8be9b78c6abb1ca98a2e4c9342e314b19d2cb7c.tar.zst |
[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
Diffstat (limited to 'src/Navigation.tsx')
-rw-r--r-- | src/Navigation.tsx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/Navigation.tsx b/src/Navigation.tsx index 0bf0e9f93..2beba4f9d 100644 --- a/src/Navigation.tsx +++ b/src/Navigation.tsx @@ -661,16 +661,15 @@ function RoutesContainer({children}: React.PropsWithChildren<{}>) { linking={LINKING} theme={theme} onStateChange={() => { - logEvent('router:navigate:sampled', { - from: prevLoggedRouteName.current, - }) - prevLoggedRouteName.current = getCurrentRouteName() + const routeName = getCurrentRouteName() + if (routeName === 'Notifications') { + logEvent('router:navigate:notifications:sampled', {}) + } }} onReady={() => { attachRouteToLogEvents(getCurrentRouteName) logModuleInitTime() onReady() - logEvent('router:navigate:sampled', {}) }}> {children} </NavigationContainer> |