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
With an applied sample rate: if the user goes into a background and a new session starts after the user returns after ~30 minutes, it's now possible this new session won't be sampled.
This is the question I'm trying to answer:
User is sampled
Starts a background upload
App goes into the background
User gets back after 30 minutes, and the upload is finished
Datadog does not sample this new session
We never get back an upload completion event
I understood from @ncreated a potential fix would be to apply the sample rate as follows:
sampleRate: random(0...1)< 0.2 ?100: 0
However, ideally, this would be handled as an option inside the SDK.
The text was updated successfully, but these errors were encountered:
We have several conditions that define a user session lifecycle, we basically restart a new session after:
application start.
15mns of inactivity (no interaction)
current session last more than 4hrs
Your use case falls under that second condition, which prevents reporting the completion of the resource upload which last more than 15mns. It doesn't have to do with sampling and there is no easy fix sadly.
We are considering several approaches to tackle this use case which will require discussion internally since our user session definition in RUM is crossplatform.
I will keep the ticket open and keep you posted with any updates.
With an applied sample rate: if the user goes into a background and a new session starts after the user returns after ~30 minutes, it's now possible this new session won't be sampled.
This is the question I'm trying to answer:
I understood from @ncreated a potential fix would be to apply the sample rate as follows:
However, ideally, this would be handled as an option inside the SDK.
The text was updated successfully, but these errors were encountered: