-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Package: replayIssues related to the Sentry Replay SDKIssues related to the Sentry Replay SDKType: Improvement
Description
Now that tracing-internal has been split out from the tracing bundle, we have a bunch of flat functions for both collecting vitals and creating performance entries. We collect LCP currently in tracing-internal package here:
| function _trackLCP(): ReturnType<typeof onLCP> { |
It should be possible now for Replay to make use of the same code instead of having separate LCP collection etc.
eg.
| function createLargestContentfulPaint( |
| // We want the latest LCP event only |
This may mean tracing-internal needs to open some hooks or check for the replay integration since replay will have specific replay-only information they may wish to append to the spans, or may wish to collect some performance information and process it further, but the actual measurement creation can now be shared.
jas-kas
Metadata
Metadata
Assignees
Labels
Package: replayIssues related to the Sentry Replay SDKIssues related to the Sentry Replay SDKType: Improvement