Enum sentry::SessionMode [−][src]
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
Long running application session.
Lots of short per-request sessions.
Trait Implementations
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
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,