1. The back end's blind spot #
A fast API does not make a fast page.
Why RUM #
Server metrics can be perfect while the user waits 6 seconds: JavaScript too heavy, unoptimized image, slow CDN in one country, a JavaScript error that blocks a button. Real User Monitoring measures performance and errors in real users' browsers.
| Approach | Measures | Strengths | Limits |
|---|---|---|---|
| RUM | Real users, real devices | Ground truth, all pages, JavaScript errors | Needs traffic, data to protect |
| Synthetic | Robot at regular intervals | Detects an outage without traffic, comparable over time | A single device, a few journeys |
Good practice: The two are complementary: synthetic alerts at night on an outage, RUM tells what most users experience (see the k6 course for synthetic monitoring).
2. Core Web Vitals #
Google's indicators.
Definitions and thresholds #
| Indicator | Measures | Good | Poor |
|---|---|---|---|
| LCP Largest Contentful Paint | Rendering of the largest visible element | ≤ 2.5 s | > 4 s |
| INP Interaction to Next Paint | Responsiveness to clicks and input | ≤ 200 ms | > 500 ms |
| CLS Cumulative Layout Shift | Visual stability (shifts) | ≤ 0.1 | > 0.25 |
| FCP First Contentful Paint | First content displayed | ≤ 1.8 s | > 3 s |
| TTFB Time To First Byte | First byte received from the server | ≤ 0.8 s | > 1.8 s |
Good to know: Thresholds are assessed at the 75th percentile of visits: a page is « good » if 75% of visits meet the threshold. INP replaced FID as a Core Web Vital in 2024.
3. What a RUM tool collects #
Beyond Web Vitals.
Front-end signals #
| Signal | Example |
|---|---|
| Performance | Web Vitals, resource loading times |
| Errors | JavaScript exceptions with stack traces, promise rejections |
| Logs | console messages |
| Events | Add to cart, sign-up, funnel step |
| Sessions | Pages viewed per session, browser, country |
| Traces | fetch/XHR requests linked to back-end traces |
My progress
Sign in to track your progress and take notes. Sign in
💬 Questions about this lesson
No questions yet: be the first to ask for help or share your configuration.
Course Glossary
Core Web Vitals
Set of three metrics defined by Google to measure the real experience of a web page: loading (LCP (Largest Contentful Paint)), responsiveness (INP (In...
LCP (Largest Contentful Paint)
Time until the largest visible element of the page (image, video or text block) is rendered: it shows when the main content appears. Loading metric of...
INP (Interaction to Next Paint)
Latency of interactions (click, tap, key press) observed over the whole visit: the delay between the user's action and the next paint. The reported va...
CLS (Cumulative Layout Shift)
Measure of visual stability: the sum of unexpected layout shifts (a button moving just as you click, text pushed down by an ad). Unitless, computed ov...
FCP (First Contentful Paint)
Time until the first content (text, image, SVG) is rendered: the moment the user sees the page start loading. It is not a Core Web Vital, but it helps...
TTFB (Time to First Byte)
Time between the start of navigation and the arrival of the first byte of the response: it adds up redirects, DNS, TCP/TLS connection and server proce...
FID (First Input Delay)
Former responsiveness metric of the Core Web Vitals: the delay before the browser starts handling the first interaction (good ≤ 100 ms). It ignored la...
TBT (Total Blocking Time)
Lab metric (Lighthouse): the sum, between FCP (First Contentful Paint) and the end of loading, of the blocking part of each long task (over 50 ms) on ...
CrUX (Chrome UX Report)
Google's public dataset aggregating the Core Web Vitals measured from real Chrome users (at the 75th percentile, per origin and URL, over a rolling 28...
Lighthouse
Google's free audit tool, built into Chrome DevTools and PageSpeed Insights: it loads the page in a simulated environment and scores performance, acce...
Apdex
Application Performance Index: a satisfaction score between 0 and 1 based on a time threshold T. Requests under T are “satisfied”, between T and 4T “t...
Recommended Articles
Browser testing and synthetic monitoring with k6
Test a web application in a real browser with the k6 browser module, measure Core Web Vitals, and...
RUM and Synthetic Monitoring with Datadog: synthetic transaction monitoring and user experience
Measure user experience with Datadog: browser and mobile RUM, Core Web Vitals, Session Replay, li...
Faro and Alloy: receiving front-end RUM with faro.receiver
Configure faro.receiver: CORS, API key, rate limiting, source maps, then send browser errors, Web...
Apdex vs Core Web Vitals
Discover the differences between Apdex and Core Web Vitals, two essential performance indicators ...
Front-end observability best practices with Faro
Checklist for useful, respectful RUM: SDK configuration, versions, source maps, correlation with ...
Digital experience: Browser, mobile and Synthetics
Measuring what users experience with New Relic: browser agent (page load, Core Web Vitals, AJAX, ...
Case study: this site's minimal RUM, cookie-free, exposed to Prometheus
How this site measures its Core Web Vitals with about forty lines of JavaScript, an anonymous bea...
Conversion funnels in RUM: measuring where users drop off
Building and reading a conversion funnel with RUM data: steps, rates, order, pitfalls, and implem...
Frontend Observability in Grafana Cloud
Frontend Observability in Grafana Cloud: RUM built on Grafana Faro. Web Vitals, JavaScript errors...