Instrument signup (#8037)

This commit is contained in:
Samuel Newman
2025-03-27 20:17:07 +02:00
committed by GitHub
parent 7d1ebf6a02
commit 5ceaee5793
8 changed files with 182 additions and 57 deletions
+2 -3
View File
@@ -4,7 +4,6 @@ import {msg} from '@lingui/macro'
import {useLingui} from '@lingui/react'
import {nanoid} from 'nanoid/non-secure'
import {logEvent} from '#/lib/statsig/statsig'
import {createFullHandle} from '#/lib/strings/handles'
import {logger} from '#/logger'
import {ScreenTransition} from '#/screens/Login/ScreenTransition'
@@ -40,7 +39,7 @@ export function StepCaptcha() {
const onSuccess = React.useCallback(
(code: string) => {
setCompleted(true)
logEvent('signup:captchaSuccess', {})
logger.metric('signup:captchaSuccess', {}, {statsig: true})
dispatch({
type: 'submit',
task: {verificationCode: code, mutableProcessed: false},
@@ -55,7 +54,7 @@ export function StepCaptcha() {
type: 'setError',
value: _(msg`Error receiving captcha response.`),
})
logEvent('signup:captchaFailure', {})
logger.metric('signup:captchaFailure', {}, {statsig: true})
logger.error('Signup Flow Error', {
registrationHandle: state.handle,
error,