Instrument a web application with the Grafana Faro Web SDK for real user monitoring, error tracking, and trace correlation

domain: grafana.com/docs/grafana-cloud · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Install @grafana/faro-web-sdk and optionally @grafana/faro-web-tracing; call initializeFaro() once at application startup with the collector URL from Grafana Cloud Frontend Observability
  2. Pass app metadata (name, version, environment) and choose instrumentations: WebVitalsInstrumentation captures Core Web Vitals, ErrorsInstrumentation captures uncaught exceptions, ConsoleInstrumentation forwards console errors
  3. For trace correlation, add the TracingInstrumentation from faro-web-tracing; this creates OTel-compatible trace spans for page loads and fetch/XHR requests and injects traceparent headers so backend spans link to frontend spans
  4. Use faro.api.pushLog() to emit structured log lines from application code, and faro.api.pushError() to manually report caught exceptions with additional context
  5. In Grafana Cloud, navigate to Frontend Observability, select your app, and explore the Web Vitals dashboard, error list, and session timeline that Faro populates
  6. Correlate Faro sessions with backend traces in Grafana Explore by matching the trace ID that Faro injected into outgoing request headers

Known gotchas

Related routes

Configure Grafana Faro Web SDK for browser RUM with session tracking and error capture
grafana.com · 6 steps · unrated
Set up Grafana Faro for browser RUM with session tracking and error capture
grafana.com · 5 steps · unrated
Instrument a Go service for continuous profiling with Grafana Pyroscope using the push SDK
grafana.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ 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