WebVitalsInstrumentationConfiginterface
Configuration for the session-level Web Vitals instrumentation.
Values are reported when the page becomes hidden: a span with the current values on each hidden transition where they changed, and (for the metrics) one terminal sample per page at pagehide - so each session contributes a single sample per histogram.
Properties (8)
| Property | Type | Default | Required | Description |
|---|---|---|---|---|
| clsMetric⚓︎ | boolean | string | null | false | x | If |
| clsMetricBuckets⚓︎ | number[] | [0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5] | x | Explicit histogram bucket boundaries for clsMetric (unitless score), ascending. The default brackets the CLS "good" (0.1) and "poor" (0.25) thresholds. |
| enabled⚓︎ | boolean | x | Whether the Web Vitals instrumentation is enabled. |
|
| inpMetric⚓︎ | boolean | string | null | false | x | If |
| inpMetricBuckets⚓︎ | number[] | [0.04, 0.1, 0.2, 0.3, 0.5, 0.75, 1, 2.5, 5] | x | Explicit histogram bucket boundaries for inpMetric, in seconds, ascending. The default brackets the INP "good" (0.2s) and "poor" (0.5s) thresholds. |
| lcpMetric⚓︎ | boolean | string | null | false | x | If |
| lcpMetricBuckets⚓︎ | number[] | [0.5, 1, 1.5, 2, 2.5, 4, 5, 7.5, 10, 15] | x | Explicit histogram bucket boundaries for lcpMetric, in seconds, ascending. The default brackets the LCP "good" (2.5s) and "poor" (4s) thresholds. |
| trace⚓︎ | boolean | true | x | If If |