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:
Sampling Method: When initializing a session in the client SDK, a random number between 0-1 is generated and compared with
rate/100. If it falls within the range, the session becomes a sample and replay data is collected and reported throughout the session lifecycle.Based on the session being sampled, the session replay sampling rate (sessionReplaySampleRate) is calculated and sampled a second time.Disable Collection
If you need to disable the collection feature, set the corresponding replay sampling rate to 0 or simply remove the configuration item:How It Works
The session replay SDK is based on rrweb.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, etc.). Data is reported after serialization, compression, and sensitive information removal.
- Before data reporting, the SDK compresses data in advance and executes this CPU-intensive operation in a Web Worker, without affecting main thread rendering
- SDK compatibility is consistent with RUM SDK, supporting IE11 and above browsers