Enum Reason
#[non_exhaustive]pub enum Reason {
SendError,
InternalError,
NetworkError,
RatelimitBackoff,
QueueOverflow,
}Expand description
Reasons for which a transport might drop data.
This is a subset of Reason, as defined in sentry_types because only some of those
reasons may be applicable to transports.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
SendError
Use this reason to record an error when sending an envelope.
This reason should be used, for example, if the server responds with a non-2xx HTTP
when the envelope is sent.
However, transports must never record a loss when receiving an HTTP 429
(rate-limiting) response, as the server already records a loss in this case.
InternalError
Used for an internal error.
This reason should be used, for example, if an I/O error prevents the envelope from being serialized.
Converts to Reason::InternalSdkError.
NetworkError
Used for a network error.
This reason should be used, for example, if a connection timeout or DNS error prevents the envelope from being sent.
Converts to Reason::NetworkError.
RatelimitBackoff
Used when the SDK is backing off due to a rate limit.
Converts to Reason::RatelimitBackoff
QueueOverflow
Used when the transport queue overflows.
Converts to Reason::QueueOverflow
Trait Implementations§
§impl Clone for TransportLossReason
impl Clone for TransportLossReason
§fn clone(&self) -> TransportLossReason
fn clone(&self) -> TransportLossReason
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for TransportLossReason
impl Debug for TransportLossReason
impl Copy for TransportLossReason
Auto Trait Implementations§
impl Freeze for TransportLossReason
impl RefUnwindSafe for TransportLossReason
impl Send for TransportLossReason
impl Sync for TransportLossReason
impl Unpin for TransportLossReason
impl UnsafeUnpin for TransportLossReason
impl UnwindSafe for TransportLossReason
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more