getsentry / rrweb

record and replay the web
https://www.rrweb.io/
Other
13 stars 5 forks source link

feat: Allow to configure `triggerFullSnapshotOnMutation` #58

Closed mydea closed 1 year ago

mydea commented 1 year ago

as a kind of follow-up to https://github.com/getsentry/rrweb/pull/55, this allows to configure an optional callback which can control if a mutation should result in a full snapshot or not.

We can leverage this in replay to:

  1. Log how many mutations are contained in a mutation set
  2. Potentially control to do full checkouts in certain times
Lms24 commented 1 year ago

potentially fixes https://github.com/getsentry/sentry-javascript/issues/6946 once we use the callback in the SDK (just linking the issue)

mydea commented 1 year ago

Closing in favor of https://github.com/getsentry/rrweb/pull/70