What gets recorded
The Sentry SDK captures a compressed, privacy-controlled recording of the user’s browser session:| Signal | Details |
|---|---|
| DOM mutations | Every addition, removal, and attribute change to the page’s DOM, reconstructed as an rrweb recording |
| User interactions | Clicks, taps, form inputs, scrolls, and keyboard events |
| Network requests | Outgoing fetch/XHR requests with URLs, methods, status codes, and optional request/response bodies |
| Console output | console.log, console.error, and similar output with log levels |
| Navigation events | Page loads, route changes, and browser history events |
| Performance data | LCP, CLS, and other Web Vitals captured during the replay |
Privacy controls
Sentry applies several privacy protections by default to prevent capturing sensitive user information:Default masking
- All text content is masked (replaced with
*characters) - All input values are masked
- Images are blocked (replaced with a placeholder)
Configuration
You can relax or tighten these defaults:data-sentry-mask or data-sentry-block HTML attributes to individual elements for fine-grained control.
Sampling
Sentry Replay supports two sampling strategies, which can be used independently or together:Session-based sampling
Captures a percentage of all sessions regardless of whether an error occurs. Set
replaysSessionSampleRate (for example, 0.1 = 10% of sessions).Error-based sampling
Captures the full session buffer whenever an error occurs. Set
replaysOnErrorSampleRate (for example, 1.0 = 100% of error sessions). The SDK buffers the last 60 seconds of activity so you always get context before the error.Rage clicks and dead clicks
Sentry detects two user frustration signals in replays:- Rage click — the user clicked the same element rapidly multiple times (indicating frustration with a non-responsive UI)
- Dead click — the user clicked an element that had no visible response (indicating a broken interaction)
Replay list and search
The Replays section lets you search and filter recordings by:- Duration
- Number of errors in the session
- Number of rage clicks or dead clicks
- URL visited
- User (ID, email, username)
- Browser, OS, or device
- Date range
Linking replays to issues and performance events
When a replay contains an error event, the issue detail page shows a Linked Replay section where you can watch the session that produced the error. Conversely, every replay shows a list of errors that occurred during the session, with links to the corresponding issues. Replays are also linked to performance transactions when the replay ID is propagated through the trace context.Replay data is stored separately from error events. The SDK sends replay segments as a compressed binary stream. Sentry stores them as
ReplayRecordingSegment records associated with a replay_id and project_id.