Real User Monitoring With OpenTelemetry: Web Vitals and Trace Correlation
Real user monitoring (RUM) measures what visitors actually experience in their browsers: how fast pages become usable, whether clicks work, which errors they hit. Pairing it with backend traces answers the hardest question — was the slow page caused by the browser or the server? This guide explains the signals and how to build and test RUM dashboards without waiting for real traffic.
The signals that matter
| Signal | What it tells you | Rule of thumb (good) |
|---|---|---|
| LCP — Largest Contentful Paint | How quickly the main content appears | 2.5 seconds or less |
| INP — Interaction to Next Paint | How responsive the page is to input | 200 ms or less |
| CLS — Cumulative Layout Shift | How much the page jumps around while loading | 0.1 or less |
| TTFB — Time to First Byte | Server and network time before anything arrives | Compare against your own baseline |
| FCP — First Contentful Paint | When anything first renders | Compare against your own baseline |
| Frustration signals | Rage clicks (many rapid clicks) and dead clicks (clicks that do nothing) | Rising counts mean broken UI |
| JavaScript errors | Exceptions with a stack, file and line, grouped by fingerprint | Group by fingerprint, not by message |
LCP, INP and CLS are the Core Web Vitals; judge them at the 75th percentile of page loads, not the average.
Connecting the browser to the backend
A browser SDK can send the W3C traceparent header with its requests, so the server joins the browser's trace. Then a slow page load shows the whole story in one trace: the browser's page load span, the API call it made, and every service behind it. OTel Studio's RUM simulator reproduces this: for a window after a session starts, a share of Web App scenario traces (E-Commerce, SaaS, Media Streaming, Banking, Social Network) use the session's page-load span as their root, so they genuinely share a trace ID. You choose the correlation rate.
Try it with synthetic sessions
- Start RUM (Simulators → RUM). Set the application name to match your real service name, so data groups sensibly. Choose how many sessions can be active at once and how often a new one starts.
- Start a Web App scenario beside it, with a correlation rate above zero.
- Build panels: p75 of each vital by page, sessions by browser and device, error counts by fingerprint, and a funnel from the named milestones such as "Checkout Complete" and "Signup Complete".
- Open a correlated trace and confirm the browser span is the root, with the backend services below it.
Sessions carry browser, operating system, viewport and connection-type attributes, so you can test breakdowns by device class too.
Alerts worth testing
- p75 LCP over 2.5 seconds for a key page for ten minutes.
- A new error fingerprint appearing, or a known one affecting more sessions than usual.
- A sudden drop in a conversion milestone while traffic is steady.
- Rage-click rate above its baseline on checkout pages.
Two modes
The default simulator generates session data directly, which is fast and needs no browser. If you want a real browser to visit your own instrumented site and produce genuine data, use the -browser image; see Real-browser RUM in the documentation.