diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/state/session/logging.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/state/session/logging.ts b/src/state/session/logging.ts index 9a703957d..b57f1fa0b 100644 --- a/src/state/session/logging.ts +++ b/src/state/session/logging.ts @@ -76,7 +76,12 @@ export function addSessionErrorLog(did: string, event: AtpSessionEvent) { if (!Statsig.initializeCalled() || !Statsig.getStableID()) { return } - Statsig.logEvent('session:error', null, {did, event}) + const stack = (new Error().stack ?? '').slice(0, MAX_SLICE_LENGTH) + Statsig.logEvent('session:error', null, { + did, + event, + stack, + }) } catch (e) { console.error(e) } |