István Kolkert
08/11/2026, 1:10 PM._startSessionReplayRecording what I am noticing though is it only starts recording after the error has occurs, thus not actually showing the cause of the error, so what is the use of doing it this way? Is there a way to always "record" but only send it to openobserve when an error actually occurs so that we can se what the user did that caused the issue?_Simran(OpenObserve)
08/11/2026, 2:16 PMSimran(OpenObserve)
08/11/2026, 2:16 PMSimran(OpenObserve)
08/11/2026, 2:16 PM0 and force replay when an error occurs:
openobserveRum.init({
sessionSampleRate: 100,
sessionReplaySampleRate: 0,
startSessionReplayRecordingManually: false,
beforeSend: (event) => {
if (event.type === 'error') {
openobserveRum.startSessionReplayRecording({ force: true });
}
return true;
},
});Simran(OpenObserve)
08/11/2026, 2:17 PMSimran(OpenObserve)
08/11/2026, 2:17 PMIstván Kolkert
08/11/2026, 2:22 PMSimran(OpenObserve)
08/11/2026, 2:26 PM