Cls Attributes

1 attribute in this category. 1 deprecated

Deprecated Attributes

These attributes are deprecated and should not be used in new code. See each attribute for migration guidance.

cls.source.<key> Deprecated

string PII: Maybe OTel: False Dynamic

The HTML elements or components responsible for the layout shift. <key> is a numeric index from 1 to N

Example body > div#app
Aliases browser.web_vital.cls.source.<key>
SDKs javascript-browser
Dynamic Suffix Yes - the key contains dynamic parts

Use browser.web_vital.cls.source.<key> instead.

The CLS source is now recorded as a browser.web_vital.cls.source.<key> attribute.

Status: backfill

Changelog
next #234
Raw JSON
{
  "key": "cls.source.<key>",
  "brief": "The HTML elements or components responsible for the layout shift. <key> is a numeric index from 1 to N",
  "has_dynamic_suffix": true,
  "type": "string",
  "pii": {
    "key": "maybe"
  },
  "is_in_otel": false,
  "example": "body > div#app",
  "deprecation": {
    "replacement": "browser.web_vital.cls.source.<key>",
    "reason": "The CLS source is now recorded as a browser.web_vital.cls.source.<key> attribute.",
    "_status": "backfill"
  },
  "alias": [
    "browser.web_vital.cls.source.<key>"
  ],
  "sdks": [
    "javascript-browser"
  ],
  "changelog": [
    {
      "version": "next",
      "prs": [
        234
      ]
    }
  ]
}