Enum relay_cabi::EventType
source · pub enum EventType {
Error,
Csp,
Hpkp,
ExpectCt,
ExpectStaple,
Nel,
Transaction,
UserReportV2,
Default,
}
Expand description
The type of an event.
The event type determines how Sentry handles the event and has an impact on processing, rate limiting, and quotas. There are three fundamental classes of event types:
- Error monitoring events (
default
,error
): Processed and grouped into unique issues based on their exception stack traces and error messages. - Security events (
csp
,hpkp
,expectct
,expectstaple
): Derived from Browser security violation reports and grouped into unique issues based on the endpoint and violation. SDKs do not send such events. - Transaction events (
transaction
): Contain operation spans and collected into traces for performance monitoring.
Variants§
Error
Events that carry an exception payload.
Csp
A CSP violation payload.
Hpkp
An HPKP violation payload.
ExpectCt
An ExpectCT violation payload.
ExpectStaple
An ExpectStaple violation payload.
Nel
Network Error Logging report.
Transaction
Performance monitoring transactions carrying spans.
UserReportV2
User feedback payload.
TODO(Jferg): Change this to UserFeedback once old UserReport logic is deprecated.
Default
All events that do not qualify as any other type.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for EventType
impl<'de> Deserialize<'de> for EventType
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<EventType> for DataCategory
impl From<EventType> for DataCategory
source§fn from(ty: EventType) -> DataCategory
fn from(ty: EventType) -> DataCategory
Converts to this type from the input type.
source§impl IntoValue for EventType
impl IntoValue for EventType
source§fn into_value(self) -> Value
fn into_value(self) -> Value
Boxes the meta structure back into a value.
source§fn serialize_payload<S>(
&self,
s: S,
_behavior: SkipSerialization,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
fn serialize_payload<S>( &self, s: S, _behavior: SkipSerialization, ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
Efficiently serializes the payload directly.
source§impl Ord for EventType
impl Ord for EventType
source§impl PartialOrd for EventType
impl PartialOrd for EventType
source§impl ProcessValue for EventType
impl ProcessValue for EventType
source§fn value_type(&self) -> EnumSet<ValueType>
fn value_type(&self) -> EnumSet<ValueType>
Returns the type of the value.
source§fn process_value<P>(
&mut self,
meta: &mut Meta,
processor: &mut P,
state: &ProcessingState<'_>,
) -> Result<(), ProcessingAction>where
P: Processor,
fn process_value<P>(
&mut self,
meta: &mut Meta,
processor: &mut P,
state: &ProcessingState<'_>,
) -> Result<(), ProcessingAction>where
P: Processor,
Executes a processor on this value.
source§fn process_child_values<P>(
&mut self,
processor: &mut P,
state: &ProcessingState<'_>,
) -> Result<(), ProcessingAction>where
P: Processor,
fn process_child_values<P>(
&mut self,
processor: &mut P,
state: &ProcessingState<'_>,
) -> Result<(), ProcessingAction>where
P: Processor,
Recurses into children of this value.
source§impl Serialize for EventType
impl Serialize for EventType
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 Copy for EventType
impl Eq for EventType
impl StructuralPartialEq for EventType
Auto Trait Implementations§
impl Freeze for EventType
impl RefUnwindSafe for EventType
impl Send for EventType
impl Sync for EventType
impl Unpin for EventType
impl UnwindSafe for EventType
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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.