feat(js): Document element timing option in browser tracing#16337
Open
feat(js): Document element timing option in browser tracing#16337
Conversation
Add documentation for the enableElementTiming option that captures performance data for elements marked with the elementtiming attribute. Closes #16334 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
logaretm
reviewed
Feb 10, 2026
| | **HTTP requests** | All fetch/XHR calls | Duration, status, URL | | ||
| | **User interactions** | Clicks, inputs that trigger work | INP (responsiveness) | | ||
| | **Long tasks** | Main thread blocking > 50ms | Duration, attribution | | ||
| | **Element timing** | Elements marked with `elementtiming` attribute | Render/load times for critical UI elements | |
Member
There was a problem hiding this comment.
l: probably should mention that only specific elements are reported here.
logaretm
reviewed
Feb 10, 2026
Comment on lines
+194
to
+196
| Enable/disable automatic spans for [Element Timing API](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceElementTiming) entries. When enabled, Sentry captures performance data for elements marked with the `elementtiming` attribute. | ||
|
|
||
| This is useful for tracking when critical UI elements (like hero images or important text) are rendered on the page: |
Member
There was a problem hiding this comment.
Same thing here, maybe "supported elements" or something like that to signal that it doesn't work for all elements as readers can be optimistic and try slapping the attribute on a bunch of elements.
logaretm
approved these changes
Feb 10, 2026
Member
logaretm
left a comment
There was a problem hiding this comment.
Minor comments on clarifying that not all elements can be reported.
coolguyzone
approved these changes
Feb 12, 2026
Contributor
coolguyzone
left a comment
There was a problem hiding this comment.
Changes look good to me.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds documentation for the
enableElementTimingoption in the browser tracing integrationThis PR adds:
enableElementTimingwith examples and usage instructionsCloses #16334