Enum Reason
#[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<'de> Deserialize<'de> for Reason
impl<'de> Deserialize<'de> for Reason
§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 IndexedEnum for Reason
impl IndexedEnum for Reason
§impl Serialize for Reason
impl Serialize for Reason
§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 Copy for Reason
impl Eq for Reason
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
key and return true if they are equal.