Skip to content

Improve instrumentation consistency and deduplicate vitals between performance<->replay #9246

@k-fish

Description

@k-fish

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(

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.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions