Documentation for automated readers
A curated documentation index is available at: https://grafana.com/llms.txt
A complete documentation index is available at: https://grafana.com/llms-full.txt
These indexes can help with page discovery before fetching individual documents.
This page is also available in Markdown, which may be easier for automated readers and AI tools to parse than HTML. The Markdown version is available at https://grafana.com/docs/grafana-cloud/observe-and-act/monitor-applications/frontend-observability/session-replay/quickstart.md, or by sending Accept: text/markdown to https://grafana.com/docs/grafana-cloud/observe-and-act/monitor-applications/frontend-observability/session-replay/quickstart/. For broader documentation discovery, the curated index is available at https://grafana.com/llms.txt and the complete index is available at https://grafana.com/llms-full.txt.
Session Replay quickstart
Get your first session recording flowing from your application to Grafana Cloud Frontend Observability.
Note
Session Replay is currently in private preview. Grafana Labs offers support on a best-effort basis, and breaking changes might occur prior to the feature being made generally available.
Before you begin
To use Session Replay, you need:
- A Grafana Cloud account.
- An application already instrumented with the Faro Web SDK, version 2.8.2 or later. If you haven’t set this up yet, complete the Frontend Observability quickstart first.
npminstalled on your machine.
Step 1: Enable Session Replay for your stack
Session Replay is disabled by default and must be enabled per Grafana Cloud stack.
- Open a Grafana Support ticket requesting Session Replay be enabled.
- List the Grafana Cloud stacks you’d like to enable it on.
Caution
By enabling Session Replay, you assume responsibility for disclosing session recording to your end users and obtaining any consent required by applicable law. Grafana Labs doesn’t display a consent banner on your behalf. Before you enable Session Replay in production, review Data privacy in Session Replay.
Step 2: Install the Faro Instrumentation Replay package
From your application folder, run:
npm install @grafana/faro-instrumentation-replayStep 3: Add ReplayInstrumentation to Faro
In your Faro initialization code, import ReplayInstrumentation and add it to the instrumentations array:
import { getWebInstrumentations, initializeFaro } from '@grafana/faro-web-sdk';
import { ReplayInstrumentation } from '@grafana/faro-instrumentation-replay';
initializeFaro({
url: 'http://faro-collector-us-central-0.grafana.net/collect/{app-key}',
app: {
name: 'my-app',
version: '1.0.0',
},
instrumentations: [...getWebInstrumentations(), new ReplayInstrumentation()],
});With default settings, all input values and text content are masked client-side before anything leaves the browser. You can tune masking, sampling, and other options later. Refer to Instrument Session Replay.
Step 4: Deploy and generate a session
- Deploy your application with the updated Faro configuration.
- Open the application in a browser.
- Navigate through a few pages, click around, and interact with the app for at least a few seconds.
Step 5: View your recording
- In Grafana Cloud, go to Frontend Observability.
- Select your application.
- Open the Sessions tab.
- Find your session in the list and open it to watch the recording.
After a session is recorded, it can take up to five minutes for the recording to appear. For ongoing sessions, new portions of the recording also appear in intervals of up to five minutes. You can’t watch a live session in real time.
Next steps
- Review Data privacy in Session Replay to make sure your setup meets your compliance requirements before recording production traffic.
- Configure masking, sampling, and other options to match your application’s needs.
- Learn how Session Replay works.
- If your recording doesn’t appear or looks corrupted, refer to Troubleshoot.
Was this page helpful?
Related resources from Grafana Labs


