Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 2.37 KB

events.md

File metadata and controls

50 lines (36 loc) · 2.37 KB

Semantic conventions for browser events

Status: Development

This document defines semantic conventions for browser (web) instrumentations that emit events.

WebVital Event

Status: Development

The event name MUST be browser.web_vital.

This event describes the website performance metrics introduced by Google, See web vitals.

Body fields:

Body Field Type Description Examples Requirement Level Stability
delta double The delta between the current value and the last-reported value. 0.2 Required Development
id string A unique ID representing this particular metric instance. v3-1677874579383-6381583661209 Required Development
name enum Name of the web vital. cls Required Development
value double Value of the web vital. 1.0 Required Development

name has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.

Value Description Stability
cls Cumulative Layout Shift. Development
fid First Input Delay. Development
inp Interation to Next Paint. Development
lcp Largest Contentful Paint. Development