Enable collection
- Automatic Collection
- Manual Collection
- Force Enable
The replay SDK is integrated into the RUM SDK. Configure the sampling rate to enable the replay feature:
Only sessions selected by
sessionSampleRate can be recorded. sessionReplaySampleRate then samples within those sessions.Disable collection
If you need to disable the collection feature, set the corresponding replay sampling rate to 0 or remove the configuration item:How it works
1
Recording Phase
The recording SDK takes snapshots of the current DOM and CSS styles, and collects corresponding events when user behaviors occur (DOM changes, mouse movement, clicks, form input). Data is reported after serialization, compression, and sensitive information removal.
2
Replay Phase
The playback SDK reconstructs the DOM based on snapshots and converts event behaviors into DOM changes for display at appropriate times.
- Before data reporting, the SDK compresses data in advance and executes this CPU-intensive operation in a Web Worker, without affecting main thread rendering
- Session replay does not support Internet Explorer. Other browser requirements match the RUM SDK; see Web SDK compatibility
Next steps
View Session Replay
Learn how to view replay records
Privacy Protection
Learn about privacy protection settings