Rename session event, scope to errors (#4761)

This commit is contained in:
dan
2024-07-09 23:03:59 +01:00
committed by GitHub
parent 7a47656816
commit ce0bf867ff
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)
}