observability

Record web vital metrics

Changed on

Accepts Core Web Vitals measurements (LCP, FID, CLS, FCP, TTFB) from frontend apps.

post/observability/vitals

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/observability/vitals
  • Auth: none required

Request body

appSlugstring required
namestring required

Metric name (LCP, FID, CLS, FCP, TTFB)

valuenumber required
rating'good' | 'needs-improvement' | 'poor'
idstring

Response

Vital recorded

Changes