-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🙏 Force session/replay session after RUM was initialised #1967
Comments
Hello @neomaxzero, |
Do you have any workaround for this at the moment? |
Sorry for my previous comment, on second thought, since the sample rate determines whether a session is tracked or not, changing the sample rate in a middle of a session, would not really make sense. Can you explicit a bit more your need? |
Hello, I think I have the same need as @neomaxzero so I'll try to explain mine (and sorry if I'm wrong and thus hijacking the issue 😅 ) Let's take an example to explain the usecase :
So in my use case, having a Thanks |
Hello, |
Hello @samsaggace and @GuillaumeNury, thanks for you feedback. |
@samsaggace @GuillaumeNury explained much better what I need. Thanks! |
Hello everyone, |
Hello, Thanks |
We also have this need, though for us it would be enough if we could force the upgrade to a session replay RUM session at an arbitrary point in an existing Browser RUM session. We wouldn't necessarily need session replay to be retroactive, if it started from the forced upgrade point, that would be good enough. |
@ischell this will be possible with the next major version of the Browser SDK. Sessions will be "upgraded" to replay only when some replay has been recorded. We are still working on it, but it's coming. |
Hello @BenoitZugmeyer, Thanks |
We are planning to release it in the coming weeks. This change was non-trivial and took more time than we expected. Thank you for your patience! |
Hi @BenoitZugmeyer, |
Hi, [email protected] has been released, see the corresponding upgrade guide.
Let us know if you have any feedback. |
Hi @bcaudan, sorry I still have a question on how it will work. Can you please tell me if I understood it correctly with this example: If I set a |
With the v5, If you want to decide when to start the recording, you should set the new So with:
No sessions can be recorded, regardless of the use of With:
Only the session for which you call |
For us, I don't think this quite gets us where we need to be. It sounds like our only option for forcing session replay is to set session replay sampling to 100%, but to also set startSessionReplayRecordingManually to true, and only call startSessionReplayRecording if we hit some trigger condition. What we were ideally looking for was to keep the existing partial sampling rate in place for sessionReplaySampleRate, but also have the ability to force the start of a session replay "upgrade" at some arbitrary point, and have assurance that doing so would get us 100% retention of session replays for the RUM sessions where such a forced ugprade took place. |
To be honest, I was also expecting something similar to what @ischell explains, cf my previous question. |
Oh ok, so I may have closed this one too quickly then. We'll let you know here if we make progress on this topic. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
@bcaudan I'm trying to clarify the behavior of this feature following version 5 based on the discussions in this thread. Could someone verify if my understanding is correct?
Our use case is to enable 100% session replays for specific users when support issues arise, while still having a smaller percentage of all sessions recorded. |
Hi @robbiedhickey, The
So for now, the automatic or manual start of the recording does not have any influence on if a session can be recorded, it is fully controlled by the For you use case, @ischell's suggestion should probably work, let us know otherwise. For the suggested ability to start the recording regardless of the preset |
Sentry has a cool feature that records the session in case of an error automatically. It's so useful for debugging but seems unsupported in the Datadog. According to this thread, I see it's even impossible to force session recording manually somehow. |
We are aware of this and we are exploring ways of doing something similar.
This is about to be released: #2777 |
Hello, |
What are you trying to achieve, and what is your issue?
Imagine I have sample-rate configured at 0.0001%. I want to force datadog-RUM to send all collected data in a specific scenario.
Can this be done in the middle of a session after the SDK is initialized?
In my specific use case, I want to see many more details and traces from users going on a user journey.
The text was updated successfully, but these errors were encountered: