|
| 1 | +--- |
| 2 | +title: Web Vitals |
| 3 | +sidebar_order: 30 |
| 4 | +description: Learn more about Web Vitals issues and how to diagnose and fix them. |
| 5 | +og_image: >- |
| 6 | + /og-images/product-issues-issue-details-performance-issues-web-vitals.png |
| 7 | +--- |
| 8 | + |
| 9 | +Web Vitals issues are created for the highest opportunity pages in a project when |
| 10 | +their vitals scores fall into the [`Meh`](/product/insights/frontend/web-vitals/#performance-score) or [`Poor`](/product/insights/frontend/web-vitals/#performance-score) threshold for an extended period of time. |
| 11 | + |
| 12 | +## Detection Criteria |
| 13 | + |
| 14 | +<Alert> |
| 15 | + |
| 16 | +This issue is currently only available for browser SDKs. |
| 17 | + |
| 18 | +</Alert> |
| 19 | + |
| 20 | +The detector for this performance issue runs on a schedule and checks the 7 day average Web Vitals scores for the top 5 [highest opportunity](/product/insights/frontend/web-vitals/#opportunity) pages on your website (_the pages that are both high traffic, and have issues worth fixing_). |
| 21 | + |
| 22 | +The following additional criteria must hold true: |
| 23 | + |
| 24 | +- You must have [Seer](/product/ai-in-sentry/seer/) enabled on your Sentry account. |
| 25 | +- You must have a [Github code mapping](/organization/integrations/source-code-mgmt/github/) configured for your project. |
| 26 | +- There must be at least `10` sample spans for the given vital (_this value is [configurable](/product/issues/issue-details/performance-issues/#configuration)_). |
| 27 | +- There must be no issues currently open for the same Web Vitals metrics on the page being evaluated. |
| 28 | + |
| 29 | +## Span Evidence |
| 30 | + |
| 31 | +You can view the [Web Vitals Insights](/product/insights/frontend/web-vitals/) dashboard |
| 32 | +to get an understanding of what pages will trigger the Web Vitals performance issue: |
| 33 | + |
| 34 | +* A _loading / render performance issue_ will be opened, if [Time to First Byte](https://web.dev/articles/ttfb#what_is_ttfb) (TTFB), [Largest Contentful Paint](https://web.dev/articles/lcp#what-is-lcp) (LCP), or [First Contentful Paint](https://web.dev/articles/fcp#what-is-fcp) (FCP) falls into or below the `Meh` threshold. |
| 35 | +* A _page stability issue_ will be opened, if [Cumulative Layout Shift](https://web.dev/articles/cls#what-is-cls) (CLS) falls below the `Meh` threshold. |
| 36 | +* An _interaction performance issue_ will be opened, if [Interaction to Next Paint](https://web.dev/articles/inp#what-is-inp) (INP) falls below the `Meh` threshold. |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | +## How to Fix Web Vitals Issues |
| 41 | + |
| 42 | +We highly recommend using [Seer's Issue Fix](/product/ai-in-sentry/seer/#issue-fix) functionality to diagnose and fix the Web Vitals Issues we've opened. Alternatively, there is lots of great documentation online about how to improve specific web vitals metrics, see: |
| 43 | + |
| 44 | +* [Optimize Largest Contentful Paint](https://web.dev/articles/optimize-lcp). |
| 45 | +* [Optimize Cumulative Layout Shift](https://web.dev/articles/optimize-cls). |
| 46 | +* [Optimize Interaction to Next Paint](https://web.dev/articles/optimize-inp). |
0 commit comments