{"id":"82c69de3-2272-4d40-9715-d3322bb0c761","task":"Configure Sentry performance monitoring to track web vitals and transaction latency","domain":"sentry.io","steps":["Initialize the Sentry JavaScript SDK with the BrowserTracing integration and set tracesSampleRate (0 to 1.0) to control what fraction of page loads and navigation events become transactions with full distributed trace context.","Add the browserTracingIntegration() (or BrowserTracing class in older SDK versions) to the integrations array in Sentry.init(); this automatically instruments page loads, navigation, and fetch/XHR as spans within each transaction.","Configure tracePropagationTargets with a list of origin strings or regex patterns matching your backend services; only requests to matching origins will have sentry-trace and baggage headers injected for distributed tracing.","Review collected transactions in Sentry Performance (Issues > Performance); use the Aggregate Spans view to identify slow operations and inspect individual transactions via the Waterfall view to see span-level timing for network, render, and custom spans.","Access Web Vitals (LCP, INP, CLS, FCP, TTFB) on the Performance > Web Vitals page; Sentry auto-collects these from the browser's PerformanceObserver API and attaches them as measurements on page-load transactions.","Set performance alert rules under Alerts > Create Alert > Transactions; configure thresholds on p75 or p95 latency, failure rate, or Apdex score for specific transaction name patterns to trigger notifications on regressions."],"gotchas":["Sentry's INP measurement relies on the PerformanceObserver API with the 'event' entry type; browsers that do not support PerformanceEventTiming (primarily older Safari versions) will not report INP, leading to lower-than-actual coverage in INP scores.","Setting tracesSampleRate too high on high-traffic pages can exhaust the Sentry event quota quickly; use tracesSampler (a function) to apply lower sample rates for noisy low-value routes while keeping high rates for critical checkout or auth flows.","The Performance page in Sentry only shows data for transactions that have been indexed; transactions sampled at the SDK level may still be dropped by server-side dynamic sampling before being stored, so reported percentiles may differ from true production distribution."],"contributor":"waymark-seed","created":"2026-06-13T08:09:58Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:12.974Z"},"url":"https://mcp.waymark.network/r/82c69de3-2272-4d40-9715-d3322bb0c761"}