Skip to content

Commit 0af3858

Browse files
committed
debug(replay): Disregard replay duration for buffer mode
This is not intended to be merged for now, I would like to debug how/why errors are occurring so far disconnected from the snapshot checkout times.
1 parent 9af0d84 commit 0af3858

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/replay-internal/src/replay.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1237,7 +1237,11 @@ export class ReplayContainer implements ReplayContainerInterface {
12371237
if (tooShort) {
12381238
this._debouncedFlush();
12391239
}
1240-
return;
1240+
1241+
// XXX: disregard durations for buffer mode for debug purposes
1242+
if (this.recordingMode !== 'buffer') {
1243+
return;
1244+
}
12411245
}
12421246

12431247
const eventBuffer = this.eventBuffer;

0 commit comments

Comments
 (0)