pub enum SessionMode {
Application,
Request,
}
Expand description
The Session Mode of the SDK.
Depending on the use-case, the SDK can be set to two different session modes:
-
Application Mode Sessions: This mode should be used for user-attended programs, which typically have a single long running session that span the applications’ lifetime.
-
Request Mode Sessions: This mode is intended for servers that use one session per incoming request, and thus have a lot of very short lived sessions.
Setting the SDK to request-mode sessions means that session durations will not be tracked, and sessions will be pre-aggregated before being sent upstream. This applies both to automatic and manually triggered sessions.
NOTE: Support for request-mode sessions was added in Sentry 21.2
.
See the Documentation on Session Modes for more information.
Variants§
Trait Implementations§
Source§impl Clone for SessionMode
impl Clone for SessionMode
Source§fn clone(&self) -> SessionMode
fn clone(&self) -> SessionMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more