Enum SessionMode
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§
§impl Clone for SessionMode
impl Clone for SessionMode
§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§impl Debug for SessionMode
impl Debug for SessionMode
§impl PartialEq for SessionMode
impl PartialEq for SessionMode
impl Copy for SessionMode
impl Eq for SessionMode
impl StructuralPartialEq for SessionMode
Auto Trait Implementations§
impl Freeze for SessionMode
impl RefUnwindSafe for SessionMode
impl Send for SessionMode
impl Sync for SessionMode
impl Unpin for SessionMode
impl UnwindSafe for SessionMode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.