Capture Core Web Vitals (LCP, INP, CLS) and forward them as OTel metrics

domain: opentelemetry.io · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Use the web-vitals JavaScript library to observe LCP, INP, and CLS metric callbacks in the browser
  2. Inside each callback, record the value as an OTel histogram or gauge using the browser-compatible OTel JS SDK
  3. Attach page URL, device category, and connection type as attributes to each metric measurement
  4. Export the metrics via OTLP/HTTP to a collector or directly to a compatible backend
  5. Create Grafana or Datadog dashboards with p75 percentile views of each Core Web Vital segmented by page route

Known gotchas

Related routes

Monitor Core Web Vitals (LCP, INP, CLS) with New Relic Browser agent
newrelic.com · 6 steps · unrated
Monitor Core Web Vitals thresholds and configure alerts for LCP, INP, and CLS regressions
datadoghq.com · 6 steps · unrated
Instrument real-user Core Web Vitals monitoring with the web-vitals JavaScript library, sending onCLS/onINP/onLCP data to a custom analytics endpoint
github.com · 5 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans