Skip to content

Commit b1ba4f2

Browse files
billyvglizokm
andcommitted
Update src/platforms/javascript/common/session-replay/understanding-sessions.mdx
Co-authored-by: Liza Mock <[email protected]>
1 parent b79e096 commit b1ba4f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/platforms/javascript/common/session-replay/understanding-sessions.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ Sentry.init({
123123
});
124124

125125
// ...
126-
// Sometime after your users are authenticated, check if they are an employee
127-
// If they are, we call `replay.flush()` to either flush the replay as normal if session-based replay, or if it is buffering due to error sampling, the flush will send the first segment of the replay.
126+
// After a user has been authenticated, check if they're an employee
127+
// If they are, we'll call `replay.flush()` to either flush the replay as normal if it's a session-based replay, or if it's buffering due to error sampling, the flush will send the first segment of the replay.
128128

129129
// Since `replaysOnErrorSampleRate` is 1, we know that a replay has been buffered and `flush()` will flush the contents of that buffer. If both sample rates are < 1, then there is a chance that a replay has not been recording/buffering.
130130
// In this case, you can check that `replay.getReplayId()` returns a value, if it does, it means replay is active and you can call `replay.flush()`, other call `replay.start()` to start recording a new replay.

0 commit comments

Comments
 (0)