You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Small follow-up from #16591: As identified by cursor (lol), our way of
setting the `lcp.*` attributes wasn't 100% aligned with how and when we
set these attributes on the pageload span. This PR changes two things:
- only set attributes if the respective LCP entry values are defined
- truncate `lcp.url` if it is longer than 200 characters
Also:
- re-added comments, since we'll likely remove the pageload-based logic
at some point
- also add `lcp.size` if `entry.size === 0` (which previously was falsy
and hence not added)
- added unit tests
0 commit comments