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
Application
Long running application session.
Request
Lots of short per-request sessions.
Trait Implementations
sourceimpl Clone for SessionMode
impl Clone for SessionMode
sourcefn clone(&self) -> SessionMode
fn clone(&self) -> SessionMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SessionMode
impl Debug for SessionMode
sourceimpl PartialEq<SessionMode> for SessionMode
impl PartialEq<SessionMode> for SessionMode
impl Copy for SessionMode
impl StructuralPartialEq for SessionMode
Auto Trait Implementations
impl RefUnwindSafe for SessionMode
impl Send for SessionMode
impl Sync for SessionMode
impl Unpin for SessionMode
impl UnwindSafe for SessionMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more