invert flag for sending to statsig (#8431)

This commit is contained in:
hailey
2025-05-30 12:13:44 -07:00
committed by GitHub
parent 4890648116
commit 2a453cd9ca
23 changed files with 154 additions and 69 deletions
@@ -46,9 +46,13 @@ export function Screen() {
to={urls.website.blog.initialVerificationAnnouncement}
label={_(msg`Learn more`)}
onPress={() => {
logger.metric('verification:learn-more', {
location: 'verificationSettings',
})
logger.metric(
'verification:learn-more',
{
location: 'verificationSettings',
},
{statsig: true},
)
}}>
Learn more here.
</InlineLinkText>
+10 -2
View File
@@ -101,14 +101,22 @@ let ProfileHeaderShell = ({
useEffect(() => {
if (live.isActive) {
logger.metric('live:view:profile', {subject: profile.did})
logger.metric(
'live:view:profile',
{subject: profile.did},
{statsig: true},
)
}
}, [live.isActive, profile.did])
const onPressAvi = React.useCallback(() => {
if (live.isActive) {
playHaptic('Light')
logger.metric('live:card:open', {subject: profile.did, from: 'profile'})
logger.metric(
'live:card:open',
{subject: profile.did, from: 'profile'},
{statsig: true},
)
liveStatusControl.open()
} else {
const modui = moderation.ui('avatar')
+1 -1
View File
@@ -959,7 +959,7 @@ export function Explore({
}
if (!alreadyReportedRef.current.has(module)) {
alreadyReportedRef.current.set(module, module)
logger.metric('explore:module:seen', {module})
logger.metric('explore:module:seen', {module}, {statsig: false})
}
}, [])
@@ -44,7 +44,11 @@ function Inner() {
trend={trend}
rank={index + 1}
onPress={() => {
logger.metric('trendingTopic:click', {context: 'explore'})
logger.metric(
'trendingTopic:click',
{context: 'explore'},
{statsig: true},
)
}}
/>
))}
+1 -1
View File
@@ -55,7 +55,7 @@ export function StepHandle() {
value: _(msg`That handle is already taken.`),
field: 'handle',
})
logger.metric('signup:handleTaken', {})
logger.metric('signup:handleTaken', {}, {statsig: true})
return
}
} catch (e) {