#[non_exhaustive]pub enum Reason {
SendError,
InternalSdkError,
NetworkError,
RatelimitBackoff,
QueueOverflow,
BufferOverflow,
EventProcessor,
BeforeSend,
SampleRate,
}Expand description
The reason why a telemetry item was discarded.
Valid discard reasons are listed in the develop docs; this enum may only define a subset of these data categories, but we will add further categories as we begin using them in the SDK.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SendError
Error when sending the envelope (e.g. non-2xx HTTP response).
InternalSdkError
An internal error in the SDK, which does not fit under any other category.
NetworkError
A network error occurred while sending the envelope.
RatelimitBackoff
The SDK is backing off due to a rate limit.
QueueOverflow
An internal queue overflowed (e.g. the transport queue).
BufferOverflow
An SDK internal buffer overflowed.
EventProcessor
An event was dropped by an event processor.
BeforeSend
An event was dropped by a before_send callback.
SampleRate
An event was dropped because of error event sampling.
Trait Implementations§
impl Copy for Reason
Source§impl<'de> Deserialize<'de> for Reason
impl<'de> Deserialize<'de> for Reason
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Reason, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Reason, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Reason
Source§impl IndexedEnum for Reason
impl IndexedEnum for Reason
Source§impl Serialize for Reason
impl Serialize for Reason
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Reason
Auto Trait Implementations§
impl Freeze for Reason
impl RefUnwindSafe for Reason
impl Send for Reason
impl Sync for Reason
impl Unpin for Reason
impl UnsafeUnpin for Reason
impl UnwindSafe for Reason
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
Mutably borrows from an owned value. Read more