-
-
Notifications
You must be signed in to change notification settings - Fork 354
Open
Labels
Description
Problem Statement
sentry-react-native/packages/core/src/js/replay/mobilereplay.ts
Lines 194 to 199 in 493c1a1
| // 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