-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: safer rrweb events and regular full snapshots (#973)
## regular full snapshots we currently only take a full snapshot at the start of a recording or on return from idle so if someone has an active and complex 20 minute recording we accrue 20 minutes of incremental snapshots. this has performance impact on playback and on seeking instead now, when we start recording we set an interval to take another full snapshot in 5 minutes if we see a fullsnapshot before that we reset the timer, so that we would take a full snapshot 5 minutes after that ## safer rrweb events we believe we are missing full snapshots and custom events - maybe on return from idle this adds a simple in-memory queue so that if we cannot take one of these triggered events, we will retry the next time rrweb emits an event it also adds a custom event to report this happened so that we can track how often and by how much this is happening (cos it might not help 🤷)
- Loading branch information
1 parent
c0ed071
commit f4e3a0a
Showing
2 changed files
with
150 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters