Enum sentry_core::SessionMode 
source · 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 moresource§impl Debug for SessionMode
 
impl Debug for SessionMode
source§impl PartialEq<SessionMode> for SessionMode
 
impl PartialEq<SessionMode> for SessionMode
source§fn eq(&self, other: &SessionMode) -> bool
 
fn eq(&self, other: &SessionMode) -> bool
self and other values to be equal, and is used
by ==.