Skip to content

Session Replay reference

Replay is configured through the RUM application, not through its own object. This page collects every replay-relevant setting in one place.

Replay records only for sessions matching a session filter with capture_replay: true. The SDK re-evaluates filters every 5 seconds; once replay activates for a session it stays on for that session.

SettingWhereDefaultDescription
capture_replaySession filterfalseRecord replay when this filter matches.
enabledSession filtertrueDisabled filters are never delivered to the SDK.

Set on the RUM application (PUT /rum/{app_id} under settings.privacy), delivered to the SDK with its config:

FieldDefaultEffect
mask_inputstrueMasks all input values in the recording (rrweb maskAllInputs).
mask_textfalseMasks all user-visible text in the recording.

The SDK records with rrweb, which is lazy-loaded only when replay activates. Recorded events are shipped as segments:

  • A segment is flushed when it reaches 100 rrweb events, and at least every 30 seconds.
  • segment_index starts at 0 and increments per flush within the session.
  • Delivery is best-effort: a failed segment upload is dropped silently.

Ingest request (sent by the SDK):

POST https://replay.siteqwality.com/v1/segments?session_id={id}&segment_index={n}
Authorization: Bearer <client_token>
Content-Type: application/json
{ "session_id": "...", "segment_index": 0, "events": [ ... ] }
FieldTypeDescription
session_idstringThe RUM session.
segment_indexintPosition within the session.
timestampstringWhen the segment was recorded.
s3_keystringStorage location (internal).
size_bytesintSegment payload size.

GET /rum/{app_id}/replay/{session_id} returns one entry per segment, in order:

FieldDescription
segment_indexPosition within the session.
urlPresigned download URL for the segment payload.
size_bytesSegment payload size.
expires_in_secondsURL lifetime: 900 seconds (15 minutes). Re-fetch the list for fresh URLs.

The dashboard player consumes these; you can also fetch them directly for your own tooling.