Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Element Timing API in Browser SDK #13675

Open
mydea opened this issue Sep 12, 2024 · 1 comment
Open

Support Element Timing API in Browser SDK #13675

mydea opened this issue Sep 12, 2024 · 1 comment
Labels
Feature: Performance Package: browser Issues related to the Sentry Browser SDK

Comments

@mydea
Copy link
Member

mydea commented Sep 12, 2024

Description

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

@mydea mydea added Feature: Performance Package: browser Issues related to the Sentry Browser SDK labels Sep 12, 2024
@Lms24
Copy link
Member

Lms24 commented Sep 12, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature: Performance Package: browser Issues related to the Sentry Browser SDK
Projects
None yet
Development

No branches or pull requests

2 participants