Rename session event, scope to errors (#4761)

(cherry picked from commit ce0bf867ff)
This commit is contained in:
dan
2024-07-09 23:03:59 +01:00
committed by Hailey
parent ee9ce7e9ba
commit 711fc16adc
2 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -71,12 +71,12 @@ let nextMessageIndex = 0
const MAX_SLICE_LENGTH = 1000
// Not gated.
export function addSessionEventLog(did: string, event: AtpSessionEvent) {
export function addSessionErrorLog(did: string, event: AtpSessionEvent) {
try {
if (!Statsig.initializeCalled() || !Statsig.getStableID()) {
return
}
Statsig.logEvent('session:event', null, {did, event})
Statsig.logEvent('session:error', null, {did, event})
} catch (e) {
console.error(e)
}