PostHog / posthog-js

Send usage data from your web app or site to PostHog, with autocapture.
https://posthog.com/docs/libraries/js
Other
299 stars 125 forks source link

fix: teardown and restart recording on session id change #1411

Closed pauldambra closed 2 months ago

pauldambra commented 2 months ago

sometimes we see the artificial full snapshot on session idle timeout end up in the previous session not the new session - no bueno

in an attempt to not keep adding conditionals here i want to explore if tearing down rrweb and restarting recording is more stable


locally this seems way more reliable, but I want to get https://github.com/PostHog/posthog-js/pull/1416 in so I can retest without that noise

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
posthog-js ✅ Ready (Inspect) Visit Preview Sep 16, 2024 9:46am
github-actions[bot] commented 2 months ago

Size Change: +3.72 kB (+0.31%)

Total Size: 1.21 MB

Filename Size Change
dist/array.full.js 347 kB +931 B (+0.27%)
dist/array.js 163 kB +931 B (+0.57%)
dist/main.js 164 kB +931 B (+0.57%)
dist/module.js 163 kB +931 B (+0.57%)
ℹ️ View Unchanged | Filename | Size | | :--- | :---: | | `dist/exception-autocapture.js` | 10.4 kB | | `dist/recorder-v2.js` | 110 kB | | `dist/recorder.js` | 111 kB | | `dist/surveys-preview.js` | 59.8 kB | | `dist/surveys.js` | 66 kB | | `dist/tracing-headers.js` | 8.26 kB | | `dist/web-vitals.js` | 10.3 kB |

compressed-size-action