sentry-javascript icon indicating copy to clipboard operation
sentry-javascript copied to clipboard

Support Element Timing API in Browser SDK

Open mydea opened this issue 1 year ago • 1 comments

Description

We want to add support for https://developer.mozilla.org/en-US/docs/Web/API/PerformanceElementTiming in the Browser SDK.

mydea avatar Sep 12 '24 14:09 mydea

Some initial thoughts:

  • The API is really cool and allows greater user input than e.g. LCP and we could probably add it to BrowserTracing
  • The element loading time seems to be measured from performance.timeOrigin onwards
  • No guarantees that the tagged element is loaded within the pageload span. So it probably makes sense to send this span standalone
  • Really just an idea but could we inject the elementtiming attribute into user-html via bundler plugins?

Quick experiment: Image

Lms24 avatar Sep 12 '24 15:09 Lms24

A PR closing this issue has just been released 🚀

This issue was referenced by PR #16589, which was included in the 9.35.0 release.

github-actions[bot] avatar Jul 04 '25 11:07 github-actions[bot]