You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm doing some experimentation with session replay, and I'd like to be able to completely turn off session replay in the middle of a session, when certain events happen. Couple of examples where I'm thinking this would be useful:
If requirements say that a user can opt out of any recording, and then they do that during a session, it should take effect immediately.
If a certain feature shouldn't be captured at all by session replay, I want to turn off replay if a user visits that feature.
I looked around a bit for how I might turn off replay in cases like this, but I didn't find anything. I see that I can stop/pause a replay that is in progress, which is close to what I'm looking for. However, I don't want to worry about toggling replay on/off after I do it once, I just want to be sure that it's off completely. Also, I think it'd probably be ambiguous about what to expect with the replay that had already started. Would it be sent still?
Solution Brainstorm
I wonder if this would be as simple as setting a new sampling value (of zero). I would think that the difficulty there is that you might already have a replay in progress. I think I'd want to blow that away entirely in addition to not capturing any further replays. My preference would be to just make a call to the SDK that stops future recordings and trashes in-progress recordings.
Are you willing to submit a PR?
No response
The text was updated successfully, but these errors were encountered:
@kahest yeah, that's what I was thinking of. Looking closer at it (that PR you referenced) though, it looks to me like start will add the session replay integration to the SDK if it wasn't originally added, but stop does exactly what you said: pause the current replay and then nil it out. If I'm reading that right, it seems like I would've expected those two calls to be opposite but equal, but they seem subtly different.
Before I looked at that PR, I was guessing that if I called start without having an existing integration, that it would've effectively been a nop, but I don't think that's true.
Problem Statement
I'm doing some experimentation with session replay, and I'd like to be able to completely turn off session replay in the middle of a session, when certain events happen. Couple of examples where I'm thinking this would be useful:
I looked around a bit for how I might turn off replay in cases like this, but I didn't find anything. I see that I can stop/pause a replay that is in progress, which is close to what I'm looking for. However, I don't want to worry about toggling replay on/off after I do it once, I just want to be sure that it's off completely. Also, I think it'd probably be ambiguous about what to expect with the replay that had already started. Would it be sent still?
Solution Brainstorm
I wonder if this would be as simple as setting a new sampling value (of zero). I would think that the difficulty there is that you might already have a replay in progress. I think I'd want to blow that away entirely in addition to not capturing any further replays. My preference would be to just make a call to the SDK that stops future recordings and trashes in-progress recordings.
Are you willing to submit a PR?
No response
The text was updated successfully, but these errors were encountered: