Skip to content

feat(attributes): Add ui.element.* attributes#284

Merged
Lms24 merged 2 commits intomainfrom
lms/feat-element-attributes
Mar 13, 2026
Merged

feat(attributes): Add ui.element.* attributes#284
Lms24 merged 2 commits intomainfrom
lms/feat-element-attributes

Conversation

@Lms24
Copy link
Member

@Lms24 Lms24 commented Mar 11, 2026

Adds attributes our browser SDK emits for Element Timing spans:

Attribute Type Description
ui.element.id string The id of the UI element
ui.element.identifier string The identifier used to measure the UI element timing
ui.element.type string type of the UI element
ui.element.paint_type string The type of element paint. Can either be 'image-paint' or 'text-paint'
ui.element.url string The URL of the UI element (e.g. an img src)
ui.element.width integer The width of the UI element (for HTML in pixels)
ui.element.height integer The height of the UI element (for Html in pixels)
ui.element.load_time double The loading time of a UI element (from time origin to finished loading)
ui.element.render_time double The rendering time of the UI element (from time origin to finished rendering)

There's no OTel equivalent semantic convention for (HTML) elements or other component attributes. We already have ui.* attributes, so I think these attributes are reasonable to add as-is (without requiring further adjustments like web vital attributes)

Adding because while working on getsentry/sentry-javascript#19261, I realized we didn't yet add these attributes to conventions

@Lms24 Lms24 requested review from a team, cleptric, lcian, mjq and nsdeschenes as code owners March 11, 2026 15:09
@github-actions
Copy link

github-actions bot commented Mar 11, 2026

Semver Impact of This PR

🟡 Minor (new features)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

Attributes

  • Add ui.element.* attributes by Lms24 in #284
  • Add ui.element.* attributes by Lms24 in #284
  • Add remaining TTFB, FCP and FP web vital attributes by Lms24 in #235
  • Add LCP web vital meta attributes by Lms24 in #233
  • Add CLS web vital source attribute by Lms24 in #234
  • Add core web web vital value attributes by Lms24 in #229
  • Add allow_any_value field to attribute schema by vgrozdanic in #272

Other

  • (http) Add http.server.request.time_in_queue attribute by dingsdax in #267
  • (resource) Add resource.deployment.environment by mjq in #266
  • Add sentry.timestamp.sequence attribute to the spec by logaretm in #262
  • Add changelog tracking to attribute definitions by ericapisani in #270

Bug Fixes 🐛

  • (attributes) Remove allow_any_value boolean attribute and allow any as type by vgrozdanic in #273
  • (gen_ai) Input and output token description by obostjancic in #261
  • Don't run changelog generation on yarn generate by Lms24 in #277
  • Avoid changelog generation recursion by Lms24 in #274

Documentation 📚

  • Update README with up-to-date links by ericapisani in #258

Internal Changes 🔧

Deps

  • Bump devalue from 5.6.3 to 5.6.4 by dependabot in #286
  • Bump dompurify from 3.3.1 to 3.3.2 by dependabot in #278
  • Bump svgo from 3.3.2 to 3.3.3 by dependabot in #275
  • Bump svelte from 5.51.5 to 5.53.5 by dependabot in #271
  • Bump rollup from 4.40.1 to 4.59.0 by dependabot in #269
  • Bump svelte from 5.48.1 to 5.51.5 by dependabot in #260

Deps Dev

  • Bump tar from 7.5.10 to 7.5.11 by dependabot in #285
  • Bump tar from 7.5.8 to 7.5.10 by dependabot in #276
  • Bump tar from 7.5.7 to 7.5.8 by dependabot in #259

Other

  • (ai) Deprecate rest of ai.* attributes by constantinius in #264
  • (attributes) Ensure each attribute json has a changelog entry by Lms24 in #282
  • (docs) Upgrade to Astro 6 by Lms24 in #283
  • (gen_ai) Deprecate gen_ai.tool.input, gen_ai.tool.message, gen_ai.tool.output by constantinius in #265
  • (repo) Populate changelog property when running yarn create:attribute by Lms24 in #280

🤖 This preview updates automatically when you update the PR.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

@Lms24 Lms24 self-assigned this Mar 11, 2026
@Lms24 Lms24 merged commit be6dca4 into main Mar 13, 2026
12 checks passed
@Lms24 Lms24 deleted the lms/feat-element-attributes branch March 13, 2026 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants