Session Replay Tools That Link to Distributed Traces
Compare session replay tools that link browser requests to distributed traces. Use a practical test to verify the connection before you buy.

A session replay can show the click that failed. A distributed trace can show why the request failed. Session replay tools that link to distributed traces connect those views at the same request. Without that link, an engineer must guess which backend trace belongs to the replay.
This guide compares documented connections in Tracekit, Datadog, New Relic, and Sentry. It also gives you a short test that checks the connection in your own application. A feature list alone cannot prove that the link works across your browser, gateway, and services.
What counts as a useful link?
A useful link starts with one action in a replay. It identifies the related HTTP request, opens the backend trace for that request, and shows the relevant server spans. The trace must belong to the same request. A chart of average API latency beside a replay does not meet this test.
The mechanism usually needs three parts:
- The browser records the request in the replay or its related event timeline.
- The browser sends trace context, often a W3C
traceparentheader, to the intended API origin. - The backend extracts that context and exports its spans to the tracing system.
The W3C Trace Context specification defines traceparent. The OpenTelemetry propagation guide explains how a service continues the context. A replay identifier can also connect an error to its recording. It does not replace request-level trace propagation.
Which tools document this connection?
| Tool | Documented path | What to verify in a trial |
|---|---|---|
| Tracekit | A replay network request with traceparent can open its backend trace. An error can also link to a replay. | Configure tracePropagationTargets. Confirm the API receives the header and the replay request opens the matching trace. |
| Datadog | Its RUM and APM integration links browser requests to backend traces. Session Replay sits in the RUM workflow. | Confirm the RUM resource for your replay has a backend trace. Check allowed tracing URLs and retained sessions. |
| New Relic | Browser distributed tracing connects AJAX activity to backend services. Session replay runs in Browser monitoring. | Confirm your Browser agent and APM agent meet the tracing requirements. Test cross-origin requests separately. |
| Sentry | Its replay data includes trace IDs, and an issue can show an associated replay. | Verify the replay, error, and transaction share the expected trace in your SDK setup. Do not assume every network request has a direct trace link. |
These rows describe documented capabilities, not a ranking. Check the Tracekit replay documentation, Datadog's RUM-to-APM guide, New Relic's browser tracing guide, and Sentry's replay API for current details. Sentry's replay API lists trace_ids. That fact alone does not establish a one-click request link in every UI.
Run one end-to-end trial
Use a staging route that calls an instrumented backend. Pick an action with a clear outcome, such as submitting a test form. Avoid real personal or payment data in the recording.
- Enable a replay for the test session. Set a temporary sample rate that makes capture likely.
- Confirm the browser records the action and its network request.
- Check the outgoing request for
traceparent. Check that your API's CORS policy permits the header for cross-origin calls. - Confirm the backend continues the incoming trace context and exports a server span.
- Open the trace from the replay or related request view. Compare its trace ID and request time with the browser request.
- Cause one controlled error. Check whether the error opens the same replay at a useful point in time.
- Repeat the trial with a sampled-out session and a failed request. Record what the tool omits.
A missing trace can have several causes. The browser may exclude the API origin, a gateway may remove the header, the backend may start a new trace, or sampling may discard spans. Tracekit's distributed tracing guide covers the trace view. The front end monitoring checklist covers browser errors and request evidence.
Tracekit setup example
Tracekit's maintained Browser SDK guide documents tracePropagationTargets. Its session replay guide documents the replay integration and the request-to-trace link. The current browser SDK injects traceparent for matching Fetch and XHR requests. The backend still needs compatible tracing instrumentation.
import { init } from '@tracekit/browser';
import { replayIntegration } from '@tracekit/replay';
init({
apiKey: 'your-public-project-key',
tracePropagationTargets: ['https://api.example.com'],
addons: [
replayIntegration({
sessionSampleRate: 1.0, // Use a high rate for this controlled test.
}),
],
});
Replace the API origin with your own. Apply your normal consent and privacy rules before recording. Set a lower production sample rate after the test. Check that the API accepts the traceparent request header. A browser header without a continued backend trace cannot provide the requested link.
Tracekit's replay viewer can show network timing and a View Backend Trace link when the request carries trace context. Its error integration can attach a replay_id to a captured error. These are different paths: one connects a request to a trace; the other connects an error to a replay. The session replay feature page gives a product overview.
Choose the tool with a repeatable result
For a purchase decision, score the actual workflow. Can an engineer move from the failed click to the request, then to the correct server span? Does the link survive a cross-origin API call? Can the engineer see an error in the same recording? Does privacy masking work on the form used in the test? What happens when either replay or trace sampling excludes the event?
Keep the result as a small trial record: action, request URL pattern, trace ID, replay link, missing spans, and any privacy issue. That record is more useful than a broad feature checklist. If the link fails, fix context propagation or instrumentation before you compare dashboard design.
Related Posts

Front End Performance Monitoring: A Production Checklist
Set up front end performance monitoring with field Web Vitals, browser errors, and request traces. Use this checklist to find the cause of slow pages.

APM Proof of Concept Checklist: Test Before You Buy
Use this APM proof of concept checklist to test trace coverage, alert quality, overhead, and cost with one real service before you choose a tool.

Best APM for FastAPI Applications: A Practical Trial
Compare FastAPI APM options with one request, database call, and background task. Use a short trial to find trace gaps and choose useful coverage.