Skip to Content
OpenPerf

Explore

Replays

Watch what a user saw and did, next to the requests, console output, errors and backend logs of the same session.

A session replay records the page in the user's browser: the DOM, its changes, scrolls, clicks and typing. It is not a video, so it stays small and plays back sharp at any size. The Replays screen lists recorded sessions, newest first.

Replays screen with the list of recorded sessions and the filters on the right

Turn replays on

The browser SDK records nothing until you set a sample rate:

main.ts
import { init } from "@openperf/sdk/browser";

init({
  dsn: import.meta.env.VITE_OPENPERF_DSN,
  replaysSessionSampleRate: 0.1,
  replaysOnErrorSampleRate: 1,
});

By default a replay hides all text, input values and media, in the browser, before anything is sent. Session replay in the SDK docs covers the sample rates, what stays hidden and how to show more.

Find a session

Each row is one session: the user, the entry page, how active the user was, how long it lasted and how many errors it had. The right panel filters by Project, Environment and Errors (With errors or Without errors). The search bar finds a session by user name, email or ID, page URL or release.

The user comes from setUser. An avatar URL shows their picture and a url, such as their profile in your admin panel, links their name. See setUser.

Watch a session

Replay player with the timeline of requests, console output and errors under it

The player shows the page at the size it had in the browser, with the current URL above it. Marks above the seek bar show page changes, clicks and errors.

ControlEffect
EventsLists everything that happened, including what is still ahead. Pick one to jump there
SettingsSets the speed, up to 8×, and Skip inactivity, on by default, which jumps over 10 seconds and more without input
Full screenFills the screen with the player and its timeline

The right panel shows the user, the activity, the project, the device and when the session started. Click the error count to jump to 10 seconds before the first error.

Timeline

The timeline under the player works like a browser console: a line appears when playback reaches it, the latest one is highlighted, and the list follows playback until you scroll up. Click a line to move playback there.

TabLines
AllEvery line below, in one list
ErrorsErrors of the session, from the browser and from backends. Open issue opens the error
Requestsfetch and XMLHttpRequest calls with status and duration. Open trace opens the trace
Consoleconsole output, with warnings and errors marked
LogsBackend logs written while serving the session's requests

A tab shows up when the session has lines of its kind, and its count grows as playback reaches them. The timeline holds up to 100 errors and 200 logs; Open in Logs opens all logs of the session in Logs.

Backend errors and logs join the session through the traces of its requests, so they need distributed tracing. An error from another project shows that project next to it.

From an error to its replay

When an error happened in a recorded session, its error page shows a Replay block. Watch from 10 seconds before opens the player just before the error.

Retention and limits

Replays are kept for 30 days. Deleting a project or its organization deletes its replays. A self-hosted instance needs object storage for replays.

On this page