diff --git a/relay_event_schema/processor/trait.ProcessValue.html b/relay_event_schema/processor/trait.ProcessValue.html index 13a28f0a93..f96988fc0e 100644 --- a/relay_event_schema/processor/trait.ProcessValue.html +++ b/relay_event_schema/processor/trait.ProcessValue.html @@ -29,7 +29,7 @@ state: &ProcessingState<'_> ) -> ProcessingResult
where P: Processor,

Recurses into children of this value.

-

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ProcessValue for bool

source§

fn value_type(&self) -> EnumSet<ValueType>

source§

fn process_value<P>( +

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ProcessValue for MetricUnit

source§

impl ProcessValue for bool

source§

fn value_type(&self) -> EnumSet<ValueType>

source§

fn process_value<P>( &mut self, meta: &mut Meta, processor: &mut P, @@ -59,7 +59,7 @@ processor: &mut P, state: &ProcessingState<'_> ) -> ProcessingResult
where - P: Processor,

source§

impl ProcessValue for Uuid

source§

impl ProcessValue for MetricUnit

source§

impl ProcessValue for Value

source§

fn value_type(&self) -> EnumSet<ValueType>

source§

fn process_value<P>( + P: Processor,

source§

impl ProcessValue for Uuid

source§

impl ProcessValue for Value

source§

fn value_type(&self) -> EnumSet<ValueType>

source§

fn process_value<P>( &mut self, meta: &mut Meta, processor: &mut P, diff --git a/relay_event_schema/protocol/enum.EventType.html b/relay_event_schema/protocol/enum.EventType.html index 06c29fe854..c1e76b53b4 100644 --- a/relay_event_schema/protocol/enum.EventType.html +++ b/relay_event_schema/protocol/enum.EventType.html @@ -1,4 +1,4 @@ -EventType in relay_event_schema::protocol - Rust

Enum relay_event_schema::protocol::EventType

pub enum EventType {
+EventType in relay_event_schema::protocol - Rust

Enum relay_event_schema::protocol::EventType

source ·
pub enum EventType {
     Error,
     Csp,
     Hpkp,
@@ -30,15 +30,15 @@
 
§

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§

§

impl EventType

pub fn as_str(&self) -> &'static str

Returns the string representation of this event type.

-

Trait Implementations§

§

impl Clone for EventType

§

fn clone(&self) -> EventType

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for EventType

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for EventType

§

fn default() -> EventType

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for EventType

§

fn deserialize<__D>( +

Implementations§

source§

impl EventType

source

pub fn as_str(&self) -> &'static str

Returns the string representation of this event type.

+

Trait Implementations§

source§

impl Clone for EventType

source§

fn clone(&self) -> EventType

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for EventType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for EventType

source§

fn default() -> EventType

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for EventType

source§

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
§

impl Display for EventType

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Empty for EventType

§

fn is_empty(&self) -> bool

Returns whether this value is empty.
§

fn is_deep_empty(&self) -> bool

Returns whether this value is empty or all of its descendants are empty. Read more
§

impl FromStr for EventType

§

type Err = ParseEventTypeError

The associated error which can be returned from parsing.
§

fn from_str(string: &str) -> Result<EventType, <EventType as FromStr>::Err>

Parses a string s to return a value of this type. Read more
§

impl FromValue for EventType

§

fn from_value(value: Annotated<Value>) -> Annotated<EventType>

Creates a meta structure from an annotated boxed value.
§

impl Hash for EventType

§

fn hash<__H>(&self, state: &mut __H)
where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for EventType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Empty for EventType

source§

fn is_empty(&self) -> bool

Returns whether this value is empty.
§

fn is_deep_empty(&self) -> bool

Returns whether this value is empty or all of its descendants are empty. Read more
source§

impl FromStr for EventType

§

type Err = ParseEventTypeError

The associated error which can be returned from parsing.
source§

fn from_str(string: &str) -> Result<EventType, <EventType as FromStr>::Err>

Parses a string s to return a value of this type. Read more
source§

impl FromValue for EventType

source§

fn from_value(value: Annotated<Value>) -> Annotated<EventType>

Creates a meta structure from an annotated boxed value.
source§

impl Hash for EventType

source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl IntoValue for EventType

§

fn into_value(self) -> Value
where - EventType: Sized,

Boxes the meta structure back into a value.
§

fn serialize_payload<S>( + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl IntoValue for EventType

source§

fn into_value(self) -> Value
where + EventType: Sized,

Boxes the meta structure back into a value.
source§

fn serialize_payload<S>( &self, s: S, _behavior: SkipSerialization @@ -46,12 +46,12 @@ EventType: Sized, S: Serializer,

Efficiently serializes the payload directly.
§

fn extract_child_meta(&self) -> BTreeMap<String, MetaTree>
where Self: Sized,

Extracts children meta map out of a value.
§

fn extract_meta_tree(value: &Annotated<Self>) -> MetaTree
where - Self: Sized,

Extracts the meta tree out of annotated value. Read more
§

impl JsonSchema for EventType

§

fn schema_name() -> String

The name of the generated JSON Schema. Read more
§

fn json_schema(gen: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
§

fn is_referenceable() -> bool

Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more
§

impl Ord for EventType

§

fn cmp(&self, other: &EventType) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + Self: Sized,

Extracts the meta tree out of annotated value. Read more
source§

impl JsonSchema for EventType

source§

fn schema_name() -> String

The name of the generated JSON Schema. Read more
source§

fn json_schema(gen: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
§

fn is_referenceable() -> bool

Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more
source§

impl Ord for EventType

source§

fn cmp(&self, other: &EventType) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
§

impl PartialEq for EventType

§

fn eq(&self, other: &EventType) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,
Restrict a value to a certain interval. Read more
source§

impl PartialEq for EventType

source§

fn eq(&self, other: &EventType) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for EventType

§

fn partial_cmp(&self, other: &EventType) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for EventType

source§

fn partial_cmp(&self, other: &EventType) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl ProcessValue for EventType

source§

fn value_type(&self) -> EnumSet<ValueType>

Returns the type of the value.
source§

fn process_value<P>( &mut self, @@ -64,11 +64,11 @@ processor: &mut P, state: &ProcessingState<'_> ) -> ProcessingResult
where - P: Processor,

Recurses into children of this value.
§

impl Serialize for EventType

§

fn serialize<__S>( + P: Processor,

Recurses into children of this value.
source§

impl Serialize for EventType

source§

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> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for EventType

source§

impl Eq for EventType

source§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for T
where diff --git a/relay_event_schema/protocol/enum.SpanStatus.html b/relay_event_schema/protocol/enum.SpanStatus.html index d1fee2e019..32ba234bb5 100644 --- a/relay_event_schema/protocol/enum.SpanStatus.html +++ b/relay_event_schema/protocol/enum.SpanStatus.html @@ -1,4 +1,4 @@ -SpanStatus in relay_event_schema::protocol - Rust

Enum relay_event_schema::protocol::SpanStatus

#[repr(u8)]
pub enum SpanStatus { +SpanStatus in relay_event_schema::protocol - Rust

Enum relay_event_schema::protocol::SpanStatus

source ·
#[repr(u8)]
pub enum SpanStatus {
Show 17 variants Ok = 0, Cancelled = 1, Unknown = 2, @@ -50,8 +50,8 @@
§

DataLoss = 15

Unrecoverable data loss or corruption

§

Unauthenticated = 16

401 Unauthorized (actually does mean unauthenticated according to RFC 7235)

Prefer PermissionDenied if a user is logged in.

-

Implementations§

§

impl SpanStatus

pub fn as_str(&self) -> &'static str

Returns the string representation of the status.

-

Trait Implementations§

§

impl AsRef<str> for SpanStatus

§

fn as_ref(&self) -> &str

Converts this type into a shared reference of the (usually inferred) input type.
§

impl Clone for SpanStatus

§

fn clone(&self) -> SpanStatus

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for SpanStatus

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for SpanStatus

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Empty for SpanStatus

§

fn is_empty(&self) -> bool

Returns whether this value is empty.
§

fn is_deep_empty(&self) -> bool

Returns whether this value is empty or all of its descendants are empty. Read more
§

impl FromStr for SpanStatus

§

type Err = ParseSpanStatusError

The associated error which can be returned from parsing.
§

fn from_str(string: &str) -> Result<SpanStatus, <SpanStatus as FromStr>::Err>

Parses a string s to return a value of this type. Read more
§

impl FromValue for SpanStatus

§

fn from_value(value: Annotated<Value>) -> Annotated<SpanStatus>

Creates a meta structure from an annotated boxed value.
§

impl IntoValue for SpanStatus

§

fn into_value(self) -> Value

Boxes the meta structure back into a value.
§

fn serialize_payload<S>( +

Implementations§

source§

impl SpanStatus

source

pub fn as_str(&self) -> &'static str

Returns the string representation of the status.

+

Trait Implementations§

source§

impl AsRef<str> for SpanStatus

source§

fn as_ref(&self) -> &str

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for SpanStatus

source§

fn clone(&self) -> SpanStatus

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SpanStatus

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for SpanStatus

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Empty for SpanStatus

source§

fn is_empty(&self) -> bool

Returns whether this value is empty.
§

fn is_deep_empty(&self) -> bool

Returns whether this value is empty or all of its descendants are empty. Read more
source§

impl FromStr for SpanStatus

§

type Err = ParseSpanStatusError

The associated error which can be returned from parsing.
source§

fn from_str(string: &str) -> Result<SpanStatus, <SpanStatus as FromStr>::Err>

Parses a string s to return a value of this type. Read more
source§

impl FromValue for SpanStatus

source§

fn from_value(value: Annotated<Value>) -> Annotated<SpanStatus>

Creates a meta structure from an annotated boxed value.
source§

impl IntoValue for SpanStatus

source§

fn into_value(self) -> Value

Boxes the meta structure back into a value.
source§

fn serialize_payload<S>( &self, s: S, _behavior: SkipSerialization @@ -59,7 +59,7 @@ SpanStatus: Sized, S: Serializer,

Efficiently serializes the payload directly.
§

fn extract_child_meta(&self) -> BTreeMap<String, MetaTree>
where Self: Sized,

Extracts children meta map out of a value.
§

fn extract_meta_tree(value: &Annotated<Self>) -> MetaTree
where - Self: Sized,

Extracts the meta tree out of annotated value. Read more
§

impl JsonSchema for SpanStatus

§

fn schema_name() -> String

The name of the generated JSON Schema. Read more
§

fn json_schema(gen: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
§

fn is_referenceable() -> bool

Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more
§

impl PartialEq for SpanStatus

§

fn eq(&self, other: &SpanStatus) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized,
Extracts the meta tree out of annotated value. Read more
source§

impl JsonSchema for SpanStatus

source§

fn schema_name() -> String

The name of the generated JSON Schema. Read more
source§

fn json_schema(gen: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
§

fn is_referenceable() -> bool

Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more
source§

impl PartialEq for SpanStatus

source§

fn eq(&self, other: &SpanStatus) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl ProcessValue for SpanStatus

source§

fn value_type(&self) -> EnumSet<ValueType>

Returns the type of the value.
source§

fn process_value<P>( &mut self, @@ -72,11 +72,11 @@ processor: &mut P, state: &ProcessingState<'_> ) -> ProcessingResult
where - P: Processor,

Recurses into children of this value.
§

impl Serialize for SpanStatus

§

fn serialize<__S>( + P: Processor,

Recurses into children of this value.
source§

impl Serialize for SpanStatus

source§

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 SpanStatus

§

impl StructuralPartialEq for SpanStatus

Auto Trait Implementations§

§

impl Freeze for SpanStatus

§

impl RefUnwindSafe for SpanStatus

§

impl Send for SpanStatus

§

impl Sync for SpanStatus

§

impl Unpin for SpanStatus

§

impl UnwindSafe for SpanStatus

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for SpanStatus

source§

impl StructuralPartialEq for SpanStatus

Auto Trait Implementations§

§

impl Freeze for SpanStatus

§

impl RefUnwindSafe for SpanStatus

§

impl Send for SpanStatus

§

impl Sync for SpanStatus

§

impl Unpin for SpanStatus

§

impl UnwindSafe for SpanStatus

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for T
where diff --git a/relay_event_schema/protocol/struct.DiscardedEvent.html b/relay_event_schema/protocol/struct.DiscardedEvent.html index 7199353d1e..2d317e61be 100644 --- a/relay_event_schema/protocol/struct.DiscardedEvent.html +++ b/relay_event_schema/protocol/struct.DiscardedEvent.html @@ -1,8 +1,8 @@ DiscardedEvent in relay_event_schema::protocol - Rust

Struct relay_event_schema::protocol::DiscardedEvent

source ·
pub struct DiscardedEvent {
     pub reason: String,
-    pub category: DataCategory,
+    pub category: DataCategory,
     pub quantity: u32,
-}

Fields§

§reason: String§category: DataCategory§quantity: u32

Trait Implementations§

source§

impl Clone for DiscardedEvent

source§

fn clone(&self) -> DiscardedEvent

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DiscardedEvent

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for DiscardedEvent

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where +}

Fields§

§reason: String§category: DataCategory§quantity: u32

Trait Implementations§

source§

impl Clone for DiscardedEvent

source§

fn clone(&self) -> DiscardedEvent

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DiscardedEvent

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for DiscardedEvent

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for DiscardedEvent

source§

fn eq(&self, other: &DiscardedEvent) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for DiscardedEvent

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where diff --git a/relay_event_schema/protocol/struct.Measurement.html b/relay_event_schema/protocol/struct.Measurement.html index 856c6992b2..f2a9a88733 100644 --- a/relay_event_schema/protocol/struct.Measurement.html +++ b/relay_event_schema/protocol/struct.Measurement.html @@ -1,9 +1,9 @@ Measurement in relay_event_schema::protocol - Rust

Struct relay_event_schema::protocol::Measurement

source ·
pub struct Measurement {
     pub value: Annotated<f64>,
-    pub unit: Annotated<MetricUnit>,
+    pub unit: Annotated<MetricUnit>,
 }
Expand description

An individual observed measurement.

Fields§

§value: Annotated<f64>

Value of observed measurement value.

-
§unit: Annotated<MetricUnit>

The unit of this measurement, defaulting to no unit.

+
§unit: Annotated<MetricUnit>

The unit of this measurement, defaulting to no unit.

Trait Implementations§

source§

impl Clone for Measurement

source§

fn clone(&self) -> Measurement

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Measurement

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Measurement

source§

fn default() -> Measurement

Returns the “default value” for a type. Read more
source§

impl Empty for Measurement

source§

fn is_empty(&self) -> bool

Returns whether this value is empty.
source§

fn is_deep_empty(&self) -> bool

Returns whether this value is empty or all of its descendants are empty. Read more
source§

impl FromValue for Measurement

source§

fn from_value(__value: Annotated<Value>) -> Annotated<Self>

Creates a meta structure from an annotated boxed value.
source§

impl IntoValue for Measurement

source§

fn into_value(self) -> Value

Boxes the meta structure back into a value.
source§

fn serialize_payload<S>( &self, __serializer: S, diff --git a/relay_event_schema/protocol/struct.ParseEventTypeError.html b/relay_event_schema/protocol/struct.ParseEventTypeError.html index a8d8954d9e..48aecf6528 100644 --- a/relay_event_schema/protocol/struct.ParseEventTypeError.html +++ b/relay_event_schema/protocol/struct.ParseEventTypeError.html @@ -1,5 +1,5 @@ -ParseEventTypeError in relay_event_schema::protocol - Rust

Struct relay_event_schema::protocol::ParseEventTypeError

pub struct ParseEventTypeError;
Expand description

An error used when parsing EventType.

-

Trait Implementations§

§

impl Clone for ParseEventTypeError

§

fn clone(&self) -> ParseEventTypeError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for ParseEventTypeError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for ParseEventTypeError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for ParseEventTypeError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
§

impl Copy for ParseEventTypeError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +ParseEventTypeError in relay_event_schema::protocol - Rust

Struct relay_event_schema::protocol::ParseEventTypeError

source ·
pub struct ParseEventTypeError;
Expand description

An error used when parsing EventType.

+

Trait Implementations§

source§

impl Clone for ParseEventTypeError

source§

fn clone(&self) -> ParseEventTypeError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ParseEventTypeError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for ParseEventTypeError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Error for ParseEventTypeError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl Copy for ParseEventTypeError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for T
where diff --git a/relay_event_schema/protocol/struct.ParseSpanStatusError.html b/relay_event_schema/protocol/struct.ParseSpanStatusError.html index ee59bef6ce..24c20c55af 100644 --- a/relay_event_schema/protocol/struct.ParseSpanStatusError.html +++ b/relay_event_schema/protocol/struct.ParseSpanStatusError.html @@ -1,5 +1,5 @@ -ParseSpanStatusError in relay_event_schema::protocol - Rust
pub struct ParseSpanStatusError;
Expand description

Error parsing a SpanStatus.

-

Trait Implementations§

§

impl Clone for ParseSpanStatusError

§

fn clone(&self) -> ParseSpanStatusError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for ParseSpanStatusError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for ParseSpanStatusError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for ParseSpanStatusError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
§

impl Copy for ParseSpanStatusError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +ParseSpanStatusError in relay_event_schema::protocol - Rust
pub struct ParseSpanStatusError;
Expand description

Error parsing a SpanStatus.

+

Trait Implementations§

source§

impl Clone for ParseSpanStatusError

source§

fn clone(&self) -> ParseSpanStatusError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ParseSpanStatusError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for ParseSpanStatusError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Error for ParseSpanStatusError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl Copy for ParseSpanStatusError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for T
where diff --git a/src/relay_server/statsd.rs.html b/src/relay_server/statsd.rs.html index 40aab99a4e..b01e3c815d 100644 --- a/src/relay_server/statsd.rs.html +++ b/src/relay_server/statsd.rs.html @@ -888,10 +888,6 @@ 888 889 890 -891 -892 -893 -894
use relay_statsd::{CounterMetric, GaugeMetric, HistogramMetric, TimerMetric};
 #[cfg(doc)]
 use tokio::runtime::RuntimeMetrics;
@@ -1652,9 +1648,6 @@
     /// Counts how many transactions were created from segment spans.
     #[cfg(feature = "processing")]
     TransactionsFromSpans,
-    /// Counter for when the DSC is missing from an event that comes from an SDK that should support
-    /// it.
-    MissingDynamicSamplingContext,
     /// The number of attachments processed in the same envelope as a user_report_v2 event.
     FeedbackAttachments,
     /// All COGS tracked values.
@@ -1712,7 +1705,6 @@
             RelayCounters::GlobalConfigFetched => "global_config.fetch",
             #[cfg(feature = "processing")]
             RelayCounters::TransactionsFromSpans => "transactions_from_spans",
-            RelayCounters::MissingDynamicSamplingContext => "missing_dynamic_sampling_context",
             RelayCounters::FeedbackAttachments => "processing.feedback_attachments",
             RelayCounters::CogsUsage => "cogs.usage",
             RelayCounters::ProjectStateFlushMetricsNoProject => "project_state.metrics.no_project",
diff --git a/src/relay_server/utils/dynamic_sampling.rs.html b/src/relay_server/utils/dynamic_sampling.rs.html
index e73fa70ab6..053ce89a17 100644
--- a/src/relay_server/utils/dynamic_sampling.rs.html
+++ b/src/relay_server/utils/dynamic_sampling.rs.html
@@ -336,189 +336,8 @@
 336
 337
 338
-339
-340
-341
-342
-343
-344
-345
-346
-347
-348
-349
-350
-351
-352
-353
-354
-355
-356
-357
-358
-359
-360
-361
-362
-363
-364
-365
-366
-367
-368
-369
-370
-371
-372
-373
-374
-375
-376
-377
-378
-379
-380
-381
-382
-383
-384
-385
-386
-387
-388
-389
-390
-391
-392
-393
-394
-395
-396
-397
-398
-399
-400
-401
-402
-403
-404
-405
-406
-407
-408
-409
-410
-411
-412
-413
-414
-415
-416
-417
-418
-419
-420
-421
-422
-423
-424
-425
-426
-427
-428
-429
-430
-431
-432
-433
-434
-435
-436
-437
-438
-439
-440
-441
-442
-443
-444
-445
-446
-447
-448
-449
-450
-451
-452
-453
-454
-455
-456
-457
-458
-459
-460
-461
-462
-463
-464
-465
-466
-467
-468
-469
-470
-471
-472
-473
-474
-475
-476
-477
-478
-479
-480
-481
-482
-483
-484
-485
-486
-487
-488
-489
-490
-491
-492
-493
-494
-495
-496
-497
-498
-499
-500
-501
-502
-503
-504
-505
-506
-507
-508
-509
-510
-511
-512
-513
-514
-515
-516
-517
-518
 

//! Functionality for calculating if a trace should be processed or dropped.
-use std::collections::HashMap;
-use std::ops::ControlFlow;
+use std::ops::ControlFlow;
 
 use chrono::Utc;
 use relay_base_schema::events::EventType;
@@ -530,119 +349,6 @@
 
 use crate::envelope::{Envelope, ItemType};
 use crate::services::outcome::Outcome;
-use crate::statsd::RelayCounters;
-use once_cell::sync::Lazy;
-use semver::{Version, VersionReq};
-
-// List of minimum SDK versions that support Performance at Scale (aka Dynamic Sampling).
-// The list is defined here:
-// https://docs.sentry.io/product/performance/performance-at-scale/getting-started
-static SUPPORTED_SDK_VERSIONS: Lazy<HashMap<&'static str, &'static str>> = Lazy::new(|| {
-    HashMap::from([
-        ("sentry-python", "1.7.2"),
-        ("sentry.python.tornado", "1.7.2"),
-        ("sentry.python.starlette", "1.7.2"),
-        ("sentry.python.flask", "1.7.2"),
-        ("sentry.python.fastapi", "1.7.2"),
-        ("sentry.python.falcon", "1.7.2"),
-        ("sentry.python.django", "1.7.2"),
-        ("sentry.python.bottle", "1.7.2"),
-        ("sentry.python.aws_lambda", "1.7.2"),
-        ("sentry.python.aiohttp", "1.7.2"),
-        ("sentry.python", "1.7.2"),
-        ("sentry-browser", "7.6.0"),
-        ("sentry.javascript.angular", "7.6.0"),
-        ("sentry.javascript.astro", "7.6.0"),
-        ("sentry.javascript.browser", "7.6.0"),
-        ("sentry.javascript.ember", "7.6.0"),
-        ("sentry.javascript.gatsby", "7.6.0"),
-        ("sentry.javascript.nextjs", "7.6.0"),
-        ("sentry.javascript.react", "7.6.0"),
-        ("sentry.javascript.remix", "7.6.0"),
-        ("sentry.javascript.serverless", "7.6.0"),
-        ("sentry.javascript.svelte", "7.6.0"),
-        ("sentry.javascript.vue", "7.6.0"),
-        ("sentry.javascript.node", "7.6.0"),
-        ("sentry.javascript.angular-ivy", "7.6.0"),
-        ("sentry.javascript.sveltekit", "7.6.0"),
-        ("sentry.javascript.bun", "7.70.0"),
-        ("sentry-cocoa", "7.23.0"),
-        ("sentry-objc", "7.23.0"),
-        ("sentry-swift", "7.23.0"),
-        ("sentry.cocoa", "7.18.0"),
-        ("sentry.swift", "7.23.0"),
-        ("SentrySwift", "7.23.0"),
-        ("sentry-android", "6.5.0"),
-        ("sentry.java.android.timber", "6.5.0"),
-        ("sentry.java.android", "6.5.0"),
-        ("sentry.native.android", "6.5.0"),
-        ("sentry-react-native", "4.3.0"),
-        ("sentry.cocoa.react-native", "4.3.0"),
-        ("sentry.java.android.react-native", "4.3.0"),
-        ("sentry.javascript.react-native", "4.3.0"),
-        ("sentry.native.android.react-native", "4.3.0"),
-        ("sentry.javascript.react-native.expo", "6.0.0"),
-        ("sentry.javascript.react.expo", "6.0.0"),
-        ("dart", "6.11.0"),
-        ("dart-sentry-client", "6.11.0"),
-        ("sentry.dart", "6.11.0"),
-        ("sentry.dart.logging", "6.11.0"),
-        ("sentry.cocoa.flutter", "6.11.0"),
-        ("sentry.dart.flutter", "6.11.0"),
-        ("sentry.java.android.flutter", "6.11.0"),
-        ("sentry.native.android.flutter", "6.11.0"),
-        ("sentry.dart.browser", "6.11.0"),
-        ("sentry-php", "3.9.0"),
-        ("sentry.php", "3.9.0"),
-        ("sentry-laravel", "3.0.0"),
-        ("sentry.php.laravel", "3.0.0"),
-        ("sentry-symfony", "4.4.0"),
-        ("sentry.php.symfony", "4.4.0"),
-        ("Symphony.SentryClient", "4.4.0"),
-        ("sentry-ruby", "5.5.0"),
-        ("sentry.ruby", "5.5.0"),
-        ("sentry.ruby.delayed_job", "5.5.0"),
-        ("sentry.ruby.rails", "5.5.0"),
-        ("sentry.ruby.resque", "5.5.0"),
-        ("sentry.ruby.sidekiq", "5.5.0"),
-        ("sentry-java", "6.5.0"),
-        ("sentry.java", "6.5.0"),
-        ("sentry.java.jul", "6.5.0"),
-        ("sentry.java.log4j2", "6.5.0"),
-        ("sentry.java.logback", "6.5.0"),
-        ("sentry.java.spring", "6.5.0"),
-        ("sentry.java.spring-boot", "6.5.0"),
-        ("sentry.java.spring-boot.jakarta", "6.5.0"),
-        ("sentry.java.spring.jakarta", "6.5.0"),
-        ("sentry.aspnetcore", "3.22.0"),
-        ("Sentry.AspNetCore", "3.22.0"),
-        ("sentry.dotnet", "3.22.0"),
-        ("sentry.dotnet.android", "3.22.0"),
-        ("sentry.dotnet.aspnet", "3.22.0"),
-        ("sentry.dotnet.aspnetcore", "3.22.0"),
-        ("sentry.dotnet.aspnetcore.grpc", "3.22.0"),
-        ("sentry.dotnet.atlasproper", "3.22.0"),
-        ("sentry.dotnet.cocoa", "3.22.0"),
-        ("sentry.dotnet.ef", "3.22.0"),
-        ("sentry.dotnet.extensions.logging", "3.22.0"),
-        ("sentry.dotnet.google-cloud-function", "3.22.0"),
-        ("sentry.dotnet.log4net", "3.22.0"),
-        ("sentry.dotnet.maui", "3.22.0"),
-        ("sentry.dotnet.nlog", "3.22.0"),
-        ("sentry.dotnet.serilog", "3.22.0"),
-        ("sentry.dotnet.xamarin", "3.22.0"),
-        ("sentry.dotnet.xamarin-forms", "3.22.0"),
-        ("Sentry.Extensions.Logging", "3.22.0"),
-        ("Sentry.NET", "3.22.0"),
-        ("Sentry.UWP", "3.22.0"),
-        ("SentryDotNet", "3.22.0"),
-        ("SentryDotNet.AspNetCore", "3.22.0"),
-        ("sentry.dotnet.unity", "0.24.0"),
-        ("sentry.cocoa.unity", "0.24.0"),
-        ("sentry.java.android.unity", "0.24.0"),
-        ("sentry.go", "0.16.0"),
-    ])
-});
 
 /// Represents the specification for sampling an incoming event.
 #[derive(Default, Clone, Debug, PartialEq)]
@@ -740,27 +446,6 @@
     envelope.dsc().map(|dsc| dsc.public_key)
 }
 
-/// Returns `Some` if the event should have the DSC, otherwise returns `None`.
-///
-/// This function is a temporary function which has been added mainly for debugging purposes. Our
-/// goal with this function is to validate how many times the DSC is not on an [`Event`] which
-/// should have it.
-fn should_have_dsc(event: &Event) -> Option<String> {
-    let client_sdk_info = event.client_sdk.value()?;
-
-    let (sdk_name, sdk_version) = (
-        client_sdk_info.name.value()?,
-        client_sdk_info.version.value()?,
-    );
-
-    let min_sdk_version = SUPPORTED_SDK_VERSIONS.get(sdk_name.as_str())?;
-
-    let req = VersionReq::parse(format!(">={}", min_sdk_version).as_str()).ok()?;
-    let version = Version::parse(sdk_version).ok()?;
-
-    req.matches(&version).then(|| sdk_name.clone())
-}
-
 /// Computes a dynamic sampling context from a transaction event.
 ///
 /// Returns `None` if the passed event is not a transaction event, or if it does not contain a
@@ -778,26 +463,6 @@
     let trace_id = trace.trace_id.value()?.0.parse().ok()?;
     let user = event.user.value();
 
-    // When we arrive at this point, we know that a DSC can be built from the event, implying that
-    // the event doesn't have one. We want to track a metric when the event should have the DSC
-    // or not based on the SDK version.
-    let sdk_name = should_have_dsc(event);
-    match sdk_name {
-        Some(sdk_name) => {
-            relay_statsd::metric!(
-                counter(RelayCounters::MissingDynamicSamplingContext) += 1,
-                sdk_name = sdk_name.as_str(),
-                should_have_dsc = "true"
-            );
-        }
-        None => {
-            relay_statsd::metric!(
-                counter(RelayCounters::MissingDynamicSamplingContext) += 1,
-                should_have_dsc = "false"
-            );
-        }
-    }
-
     Some(DynamicSamplingContext {
         trace_id,
         public_key,
@@ -822,7 +487,7 @@
 
 #[cfg(test)]
 mod tests {
-    use relay_event_schema::protocol::{ClientSdkInfo, EventId, LenientString};
+    use relay_event_schema::protocol::{EventId, LenientString};
     use relay_protocol::Annotated;
     use relay_protocol::RuleCondition;
     use relay_sampling::config::{RuleId, SamplingRule, SamplingValue};
@@ -1008,30 +673,5 @@
         let result = is_trace_fully_sampled(&config, &dsc);
         assert!(result.is_none());
     }
-
-    #[test]
-    fn test_track_missing_dsc_with_supported_sdk_version() {
-        let mut event = mocked_event(EventType::Transaction, "bar", "2.0");
-        event.client_sdk = Annotated::new(ClientSdkInfo {
-            name: Annotated::new("sentry.python.flask".to_string()),
-            version: Annotated::new("1.7.3".to_string()),
-            ..Default::default()
-        });
-
-        let sdk_name = should_have_dsc(&event).unwrap();
-        assert_eq!(sdk_name, "sentry.python.flask".to_string());
-    }
-
-    #[test]
-    fn test_track_missing_dsc_with_unsupported_sdk_version() {
-        let mut event = mocked_event(EventType::Transaction, "bar", "2.0");
-        event.client_sdk = Annotated::new(ClientSdkInfo {
-            name: Annotated::new("sentry.python.flask".to_string()),
-            version: Annotated::new("1.0.3".to_string()),
-            ..Default::default()
-        });
-
-        assert!(should_have_dsc(&event).is_none());
-    }
 }
 

\ No newline at end of file