Skip to content

Replay: Refactor the retrieval of ReplayID #5376

@lucas-zimerman

Description

@lucas-zimerman

Problem Statement

// TODO: For better performance, we should emit replayId changes on native, and hold the replayId value in JS
const currentReplayId = NATIVE.getCurrentReplayId();
if (currentReplayId) {
dsc.replay_id = currentReplayId;
}
});

Parts of the code uses this data, such as Logs, if we get an excessive amount of requests to this endpoint, we will generate a lot of overhead to the app.

Solution Brainstorm

We should emit when replay IDs are created on the native layer and cache it on the JavaScript layer to avoid too much bridge interaction

Are you willing to submit a PR?

None

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions