You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently $snapshot events are treated like any other and processed by plugins. However:
Modifying the payload data could easily break the session recording feature or display misleading information on the screen.
The data payload is chunked and compressed - making it hard to make anything out of it.
The payload data contains pretty large data that we need to serialize to send back-and-forth from consumer to worker to VM and back again - this hurts performance.
Plugin authors might not know about treating $snapshot events in a special way.
The only usecase for plugins is syncing it to other data sources and playing back via rrweb there.
I'd propose ignoring snapshot events for now and in the future perhaps add a processSnapshotBatch or similar function to plugins if the syncing scenario comes up. This function would not be allowed to modify the data though.
Provocative title, I know.
Currently $snapshot events are treated like any other and processed by plugins. However:
The only usecase for plugins is syncing it to other data sources and playing back via rrweb there.
I'd propose ignoring snapshot events for now and in the future perhaps add a
processSnapshotBatchor similar function to plugins if the syncing scenario comes up. This function would not be allowed to modify the data though.