diff --git a/help.html b/help.html index 05ba25fe0b..84f9034b0c 100644 --- a/help.html +++ b/help.html @@ -1 +1 @@ -Rustdoc help

Rustdoc help

Back
\ No newline at end of file +Rustdoc help

Rustdoc help

Back
\ No newline at end of file diff --git a/relay_cabi/enum.DataCategory.html b/relay_cabi/enum.DataCategory.html index beb55b53b6..ec28e0d6cc 100644 --- a/relay_cabi/enum.DataCategory.html +++ b/relay_cabi/enum.DataCategory.html @@ -1,4 +1,4 @@ -DataCategory in relay_cabi - Rust
pub enum DataCategory {
+DataCategory in relay_cabi - Rust
pub enum DataCategory {
 
Show 13 variants Default, Error, Transaction, @@ -32,32 +32,32 @@
§

ProfileIndexed

Indexed Profile

This is the category for indexed profiles that will be stored later.

§

Unknown

Any other data category not known by this Relay.

-

Implementations§

§

impl DataCategory

pub fn from_name(string: &str) -> DataCategory

Returns the data category corresponding to the given name.

-

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

Returns the canonical name of this data category.

-

pub fn is_error(self) -> bool

Returns true if the DataCategory refers to an error (i.e an error event).

-

pub fn value(self) -> Option<u8>

Returns the numeric value for this outcome.

-

pub fn index_category(self) -> Option<DataCategory>

Returns a dedicated category for indexing if this data can be converted to metrics.

+

Implementations§

source§

impl DataCategory

source

pub fn from_name(string: &str) -> DataCategory

Returns the data category corresponding to the given name.

+
source

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

Returns the canonical name of this data category.

+
source

pub fn is_error(self) -> bool

Returns true if the DataCategory refers to an error (i.e an error event).

+
source

pub fn value(self) -> Option<u8>

Returns the numeric value for this outcome.

+
source

pub fn index_category(self) -> Option<DataCategory>

Returns a dedicated category for indexing if this data can be converted to metrics.

This returns None for most data categories.

-

Trait Implementations§

§

impl Clone for DataCategory

§

fn clone(&self) -> DataCategory

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 DataCategory

§

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

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for DataCategory

§

fn deserialize<__D>( +

Trait Implementations§

source§

impl Clone for DataCategory

source§

fn clone(&self) -> DataCategory

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 DataCategory

source§

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

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

impl<'de> Deserialize<'de> for DataCategory

source§

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

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

impl Display for DataCategory

§

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

Formats the value using the given formatter. Read more
§

impl From<EventType> for DataCategory

§

fn from(ty: EventType) -> DataCategory

Converts to this type from the input type.
§

impl FromStr for DataCategory

§

type Err = ()

The associated error which can be returned from parsing.
§

fn from_str( + __D: Deserializer<'de>,

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

impl Display for DataCategory

source§

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

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

impl From<EventType> for DataCategory

source§

fn from(ty: EventType) -> DataCategory

Converts to this type from the input type.
source§

impl FromStr for DataCategory

§

type Err = ()

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

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

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

impl Hash for DataCategory

§

fn hash<__H>(&self, state: &mut __H)where +) -> Result<DataCategory, <DataCategory as FromStr>::Err>

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

impl Hash for DataCategory

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 Ord for DataCategory

§

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

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

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

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

impl Ord for DataCategory

source§

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

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

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

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

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

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

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

Restrict a value to a certain interval. Read more
§

impl PartialEq<DataCategory> for DataCategory

§

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

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

impl PartialEq<DataCategory> for DataCategory

source§

fn eq(&self, other: &DataCategory) -> 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<DataCategory> for DataCategory

§

fn partial_cmp(&self, other: &DataCategory) -> 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<DataCategory> for DataCategory

source§

fn partial_cmp(&self, other: &DataCategory) -> 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
§

impl Serialize for DataCategory

§

fn serialize<__S>( +operator. Read more

source§

impl Serialize for DataCategory

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 DataCategory

§

impl Eq for DataCategory

§

impl StructuralEq for DataCategory

§

impl StructuralPartialEq for DataCategory

Auto Trait Implementations§

§

impl RefUnwindSafe for DataCategory

§

impl Send for DataCategory

§

impl Sync for DataCategory

§

impl Unpin for DataCategory

§

impl UnwindSafe for DataCategory

Blanket Implementations§

source§

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

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

impl Copy for DataCategory

source§

impl Eq for DataCategory

source§

impl StructuralEq for DataCategory

source§

impl StructuralPartialEq for DataCategory

Auto Trait Implementations§

§

impl RefUnwindSafe for DataCategory

§

impl Send for DataCategory

§

impl Sync for DataCategory

§

impl Unpin for DataCategory

§

impl UnwindSafe for DataCategory

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
§

impl<T> CallHasher for Twhere diff --git a/relay_cabi/enum.EventType.html b/relay_cabi/enum.EventType.html index bac0849a07..d8fb3096f2 100644 --- a/relay_cabi/enum.EventType.html +++ b/relay_cabi/enum.EventType.html @@ -1,4 +1,4 @@ -EventType in relay_cabi - Rust

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>( +

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 From<EventType> for DataCategory

§

fn from(ty: EventType) -> DataCategory

Converts to this type from the input type.
§

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
§

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
source§

impl From<EventType> for DataCategory

source§

fn from(ty: EventType) -> DataCategory

Converts to this type from the input type.
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
§

impl FromValue for EventType

§

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) -> Valuewhere @@ -40,12 +40,12 @@ EventType: Sized, S: Serializer,

Efficiently serializes the payload directly.
§

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

Extracts children meta map out of a value.
§

fn extract_meta_tree(value: &Annotated<Self>) -> MetaTreewhere - 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) -> Selfwhere + 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) -> Selfwhere Self: Sized,

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

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

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

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

Restrict a value to a certain interval. Read more
§

impl PartialEq<EventType> 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<Self>,

Restrict a value to a certain interval. Read more
source§

impl PartialEq<EventType> 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<EventType> 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<EventType> 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
§

impl ProcessValue for EventType

§

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

Returns the type of the value.
§

fn process_value<P>( &mut self, @@ -58,11 +58,11 @@ processor: &mut P, state: &ProcessingState<'_> ) -> Result<(), ProcessingAction>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 StructuralEq for EventType

§

impl StructuralPartialEq for EventType

Auto Trait Implementations§

§

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 Twhere + __S: Serializer,

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

impl Copy for EventType

source§

impl Eq for EventType

source§

impl StructuralEq for EventType

source§

impl StructuralPartialEq for EventType

Auto Trait Implementations§

§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
§

impl<T> CallHasher for Twhere diff --git a/relay_cabi/enum.SpanStatus.html b/relay_cabi/enum.SpanStatus.html index ef01e2f189..4db208fa00 100644 --- a/relay_cabi/enum.SpanStatus.html +++ b/relay_cabi/enum.SpanStatus.html @@ -1,4 +1,4 @@ -SpanStatus in relay_cabi - Rust

Trait Implementations§

§

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>( +

Trait Implementations§

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
§

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
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
§

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>( &self, s: S, _behavior: SkipSerialization @@ -58,7 +58,7 @@ SpanStatus: Sized, S: Serializer,

Efficiently serializes the payload directly.
§

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

Extracts children meta map out of a value.
§

fn extract_meta_tree(value: &Annotated<Self>) -> MetaTreewhere - 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<SpanStatus> 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<SpanStatus> 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.
§

impl ProcessValue for SpanStatus

§

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

Returns the type of the value.
§

fn process_value<P>( &mut self, @@ -71,11 +71,11 @@ processor: &mut P, state: &ProcessingState<'_> ) -> Result<(), ProcessingAction>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 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 Twhere + __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 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 Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for Twhere diff --git a/relay_config/struct.AuthConfig.html b/relay_config/struct.AuthConfig.html index 0342aadaf4..70f0ad0701 100644 --- a/relay_config/struct.AuthConfig.html +++ b/relay_config/struct.AuthConfig.html @@ -1,9 +1,9 @@ AuthConfig in relay_config - Rust
pub struct AuthConfig {
     pub ready: ReadinessCondition,
-    pub static_relays: HashMap<RelayId, RelayInfo>,
+    pub static_relays: HashMap<RelayId, RelayInfo>,
 }
Expand description

Authentication options.

Fields§

§ready: ReadinessCondition

Controls responses from the readiness health check endpoint based on authentication.

-
§static_relays: HashMap<RelayId, RelayInfo>

Statically authenticated downstream relays.

+
§static_relays: HashMap<RelayId, RelayInfo>

Statically authenticated downstream relays.

Trait Implementations§

source§

impl Debug for AuthConfig

source§

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

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

impl Default for AuthConfig

source§

fn default() -> AuthConfig

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

impl<'de> Deserialize<'de> for AuthConfig

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 Serialize for AuthConfig

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere diff --git a/relay_config/struct.Config.html b/relay_config/struct.Config.html index 5271d82365..801fb4c86c 100644 --- a/relay_config/struct.Config.html +++ b/relay_config/struct.Config.html @@ -19,9 +19,9 @@ ) -> Result<bool>

Set new credentials.

This also writes the credentials back to the file.

source

pub fn has_credentials(&self) -> bool

Returns true if the config is ready to use.

-
source

pub fn secret_key(&self) -> Option<&SecretKey>

Returns the secret key if set.

-
source

pub fn public_key(&self) -> Option<&PublicKey>

Returns the public key if set.

-
source

pub fn relay_id(&self) -> Option<&RelayId>

Returns the relay ID.

+
source

pub fn secret_key(&self) -> Option<&SecretKey>

Returns the secret key if set.

+
source

pub fn public_key(&self) -> Option<&PublicKey>

Returns the public key if set.

+
source

pub fn relay_id(&self) -> Option<&RelayId>

Returns the relay ID.

source

pub fn relay_mode(&self) -> RelayMode

Returns the relay mode.

source

pub fn upstream_descriptor(&self) -> &UpstreamDescriptor<'_>

Returns the upstream target as descriptor.

source

pub fn http_host_header(&self) -> Option<&str>

Returns the custom HTTP “Host” header.

@@ -118,13 +118,13 @@ &self, topic: KafkaTopic ) -> Result<KafkaConfig<'_>, KafkaConfigError>

Configuration name and list of Kafka configuration parameters for a given topic.

-
source

pub fn redis(&self) -> Option<&RedisConfig>

Redis servers to connect to, for rate limiting.

+
source

pub fn redis(&self) -> Option<&RedisConfig>

Redis servers to connect to, for rate limiting.

source

pub fn attachment_chunk_size(&self) -> usize

Chunk size of attachments in bytes.

source

pub fn projectconfig_cache_prefix(&self) -> &str

Default prefix to use when looking up project configs in Redis. This is only done when Relay is in processing mode.

source

pub fn max_rate_limit(&self) -> Option<u64>

Maximum rate limit to report to clients in seconds.

source

pub fn aggregator_config(&self) -> &AggregatorConfig

Returns configuration for the metrics aggregator.

-
source

pub fn static_relays(&self) -> &HashMap<RelayId, RelayInfo>

Return the statically configured Relays.

+
source

pub fn static_relays(&self) -> &HashMap<RelayId, RelayInfo>

Return the statically configured Relays.

source

pub fn accept_unknown_items(&self) -> bool

Returns true if unknown items should be accepted and forwarded.

source

pub fn aws_runtime_api(&self) -> Option<&str>

Returns the host and port of the AWS lambda runtime API.

Trait Implementations§

source§

impl Debug for Config

source§

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

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

impl Default for Config

source§

fn default() -> Self

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

Auto Trait Implementations§

§

impl RefUnwindSafe for Config

§

impl Send for Config

§

impl Sync for Config

§

impl Unpin for Config

§

impl UnwindSafe for Config

Blanket Implementations§

source§

impl<T> Any for Twhere diff --git a/relay_config/struct.Credentials.html b/relay_config/struct.Credentials.html index aba9ab8dd8..1551c2645c 100644 --- a/relay_config/struct.Credentials.html +++ b/relay_config/struct.Credentials.html @@ -1,11 +1,11 @@ Credentials in relay_config - Rust
pub struct Credentials {
-    pub secret_key: SecretKey,
-    pub public_key: PublicKey,
-    pub id: RelayId,
+    pub secret_key: SecretKey,
+    pub public_key: PublicKey,
+    pub id: RelayId,
 }
Expand description

The relay credentials

-

Fields§

§secret_key: SecretKey

The secret key of the relay

-
§public_key: PublicKey

The public key of the relay

-
§id: RelayId

The globally unique ID of the relay.

+

Fields§

§secret_key: SecretKey

The secret key of the relay

+
§public_key: PublicKey

The public key of the relay

+
§id: RelayId

The globally unique ID of the relay.

Implementations§

source§

impl Credentials

source

pub fn generate() -> Self

Generates new random credentials.

source

pub fn to_json_string(&self) -> Result<String>

Serializes this configuration to JSON.

Trait Implementations§

source§

impl Clone for Credentials

source§

fn clone(&self) -> Credentials

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 Credentials

source§

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

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

impl<'de> Deserialize<'de> for Credentials

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where diff --git a/relay_config/struct.Processing.html b/relay_config/struct.Processing.html index 3fb1a00595..a4b1929b1e 100644 --- a/relay_config/struct.Processing.html +++ b/relay_config/struct.Processing.html @@ -7,7 +7,7 @@ pub kafka_config: Vec<KafkaConfigParam>, pub secondary_kafka_configs: BTreeMap<String, Vec<KafkaConfigParam>>, pub topics: TopicAssignments, - pub redis: Option<RedisConfig>, + pub redis: Option<RedisConfig>, pub attachment_chunk_size: ByteSize, pub projectconfig_cache_prefix: String, pub max_rate_limit: Option<u32>, @@ -34,7 +34,7 @@

Then metrics will be produced to an entirely different Kafka cluster.

§topics: TopicAssignments

Kafka topic names.

-
§redis: Option<RedisConfig>

Redis hosts to connect to for storing state for rate limits.

+
§redis: Option<RedisConfig>

Redis hosts to connect to for storing state for rate limits.

§attachment_chunk_size: ByteSize

Maximum chunk size of attachments for Kafka.

§projectconfig_cache_prefix: String

Prefix to use when looking up project configs in Redis. Defaults to “relayconfig”.

§max_rate_limit: Option<u32>

Maximum rate limit to report to clients.

diff --git a/relay_config/struct.RelayInfo.html b/relay_config/struct.RelayInfo.html index 2187028fd2..031c0f93b9 100644 --- a/relay_config/struct.RelayInfo.html +++ b/relay_config/struct.RelayInfo.html @@ -1,10 +1,10 @@ RelayInfo in relay_config - Rust

Struct relay_config::RelayInfo

source ·
pub struct RelayInfo {
-    pub public_key: PublicKey,
+    pub public_key: PublicKey,
     pub internal: bool,
 }
Expand description

Information on a downstream Relay.

-

Fields§

§public_key: PublicKey

The public key that this Relay uses to authenticate and sign requests.

+

Fields§

§public_key: PublicKey

The public key that this Relay uses to authenticate and sign requests.

§internal: bool

Marks an internal relay that has privileged access to more project configuration.

-

Implementations§

source§

impl RelayInfo

source

pub fn new(public_key: PublicKey) -> Self

Creates a new RelayInfo

+

Implementations§

source§

impl RelayInfo

source

pub fn new(public_key: PublicKey) -> Self

Creates a new RelayInfo

Trait Implementations§

source§

impl Clone for RelayInfo

source§

fn clone(&self) -> RelayInfo

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 RelayInfo

source§

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

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

impl<'de> Deserialize<'de> for RelayInfo

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 Serialize for RelayInfo

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere diff --git a/relay_dynamic_config/index.html b/relay_dynamic_config/index.html index 3ed740795a..7def8f4b98 100644 --- a/relay_dynamic_config/index.html +++ b/relay_dynamic_config/index.html @@ -8,7 +8,7 @@
  • settings that the user configured in Sentry’s UI.
  • Project Configuration

    -

    So far, the only scope of dynamic configuration is per [relay_auth::PublicKey] a.k.a. DSN. +

    So far, the only scope of dynamic configuration is per relay_auth::PublicKey a.k.a. DSN. The schema for this configuration is defined in ProjectConfig.

    Example Config

    {
         "organizationId": 1,
    diff --git a/relay_dynamic_config/struct.LimitedProjectConfig.html b/relay_dynamic_config/struct.LimitedProjectConfig.html
    index 20a7299d9c..20eccf650f 100644
    --- a/relay_dynamic_config/struct.LimitedProjectConfig.html
    +++ b/relay_dynamic_config/struct.LimitedProjectConfig.html
    @@ -1,6 +1,6 @@
     LimitedProjectConfig in relay_dynamic_config - Rust
    pub struct LimitedProjectConfig {
    Show 16 fields pub allowed_domains: Vec<String>, - pub trusted_relays: Vec<PublicKey>, + pub trusted_relays: Vec<PublicKey>, pub pii_config: Option<PiiConfig>, pub filter_settings: FiltersConfig, pub datascrubbing_settings: DataScrubbingConfig, @@ -17,7 +17,7 @@ pub span_description_rules: Option<Vec<SpanDescriptionRule>>,
    }
    Expand description

    Subset of ProjectConfig that is passed to external Relays.

    For documentation of the fields, see ProjectConfig.

    -

    Fields§

    §allowed_domains: Vec<String>§trusted_relays: Vec<PublicKey>§pii_config: Option<PiiConfig>§filter_settings: FiltersConfig§datascrubbing_settings: DataScrubbingConfig§dynamic_sampling: Option<SamplingConfig>§session_metrics: SessionMetricsConfig§transaction_metrics: Option<ErrorBoundary<TransactionMetricsConfig>>§metric_conditional_tagging: Vec<TaggingRule>§span_attributes: BTreeSet<SpanAttribute>§measurements: Option<MeasurementsConfig>§breakdowns_v2: Option<BreakdownsConfig>§features: FeatureSet§tx_name_rules: Vec<TransactionNameRule>§tx_name_ready: bool

    Whether or not a project is ready to mark all URL transactions as “sanitized”.

    +

    Fields§

    §allowed_domains: Vec<String>§trusted_relays: Vec<PublicKey>§pii_config: Option<PiiConfig>§filter_settings: FiltersConfig§datascrubbing_settings: DataScrubbingConfig§dynamic_sampling: Option<SamplingConfig>§session_metrics: SessionMetricsConfig§transaction_metrics: Option<ErrorBoundary<TransactionMetricsConfig>>§metric_conditional_tagging: Vec<TaggingRule>§span_attributes: BTreeSet<SpanAttribute>§measurements: Option<MeasurementsConfig>§breakdowns_v2: Option<BreakdownsConfig>§features: FeatureSet§tx_name_rules: Vec<TransactionNameRule>§tx_name_ready: bool

    Whether or not a project is ready to mark all URL transactions as “sanitized”.

    §span_description_rules: Option<Vec<SpanDescriptionRule>>

    Implementations§

    source§

    impl LimitedProjectConfig

    source

    pub fn serialize<__S>( __self: &ProjectConfig, __serializer: __S diff --git a/relay_dynamic_config/struct.MetricSpec.html b/relay_dynamic_config/struct.MetricSpec.html index 6a82907ea1..1d908b1058 100644 --- a/relay_dynamic_config/struct.MetricSpec.html +++ b/relay_dynamic_config/struct.MetricSpec.html @@ -1,11 +1,11 @@ MetricSpec in relay_dynamic_config - Rust
    pub struct MetricSpec {
    -    pub category: DataCategory,
    +    pub category: DataCategory,
         pub mri: String,
         pub field: Option<String>,
         pub condition: Option<RuleCondition>,
         pub tags: Vec<TagSpec>,
     }
    Expand description

    Specification for a metric to extract from some data.

    -

    Fields§

    §category: DataCategory

    Category of data to extract this metric for.

    +

    Fields§

    §category: DataCategory

    Category of data to extract this metric for.

    §mri: String

    The Metric Resource Identifier (MRI) of the metric to extract.

    §field: Option<String>

    A path to the field to extract the metric from.

    This value contains a fully qualified expression pointing at the data field in the payload diff --git a/relay_dynamic_config/struct.ProjectConfig.html b/relay_dynamic_config/struct.ProjectConfig.html index b90b8c1b06..9e4e2e5a51 100644 --- a/relay_dynamic_config/struct.ProjectConfig.html +++ b/relay_dynamic_config/struct.ProjectConfig.html @@ -1,6 +1,6 @@ ProjectConfig in relay_dynamic_config - Rust

    pub struct ProjectConfig {
    Show 20 fields pub allowed_domains: Vec<String>, - pub trusted_relays: Vec<PublicKey>, + pub trusted_relays: Vec<PublicKey>, pub pii_config: Option<PiiConfig>, pub grouping_config: Option<Value>, pub filter_settings: FiltersConfig, @@ -21,7 +21,7 @@ pub span_description_rules: Option<Vec<SpanDescriptionRule>>,
    }
    Expand description

    Dynamic, per-DSN configuration passed down from Sentry.

    Fields§

    §allowed_domains: Vec<String>

    URLs that are permitted for cross original JavaScript requests.

    -
    §trusted_relays: Vec<PublicKey>

    List of relay public keys that are permitted to access this project.

    +
    §trusted_relays: Vec<PublicKey>

    List of relay public keys that are permitted to access this project.

    §pii_config: Option<PiiConfig>

    Configuration for PII stripping.

    §grouping_config: Option<Value>

    The grouping configuration.

    §filter_settings: FiltersConfig

    Configuration for filter rules.

    diff --git a/relay_filter/transaction_name/fn.should_filter.html b/relay_filter/transaction_name/fn.should_filter.html index 6332e1ad38..b3567e7ce8 100644 --- a/relay_filter/transaction_name/fn.should_filter.html +++ b/relay_filter/transaction_name/fn.should_filter.html @@ -1,6 +1,6 @@ should_filter in relay_filter::transaction_name - Rust
    pub fn should_filter(
         event: &Event,
         config: &IgnoreTransactionsFilterConfig
    -) -> Result<(), FilterStatKey>
    Expand description

    Filters Transaction events based on a list of provided transaction +) -> Result<(), FilterStatKey>

    Expand description

    Filters Transaction events based on a list of provided transaction name globs.

    \ No newline at end of file diff --git a/relay_filter/transaction_name/index.html b/relay_filter/transaction_name/index.html index 1499da23e4..8b1ebafa19 100644 --- a/relay_filter/transaction_name/index.html +++ b/relay_filter/transaction_name/index.html @@ -1,4 +1,4 @@ relay_filter::transaction_name - Rust
    Expand description

    Implements event filtering based on whether the endpoint called is a healthcheck endpoint.

    If this filter is enabled transactions from healthcheck endpoints will be filtered out.

    -

    Functions

    Functions

    \ No newline at end of file diff --git a/relay_metrics/enum.DurationUnit.html b/relay_metrics/enum.DurationUnit.html index 26b3bff3f9..81bc49a11d 100644 --- a/relay_metrics/enum.DurationUnit.html +++ b/relay_metrics/enum.DurationUnit.html @@ -1,4 +1,4 @@ -DurationUnit in relay_metrics - Rust

    Trait Implementations§

    §

    impl Clone for DurationUnit

    §

    fn clone(&self) -> DurationUnit

    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 DurationUnit

    §

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

    Formats the value using the given formatter. Read more
    §

    impl Default for DurationUnit

    §

    fn default() -> DurationUnit

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

    impl Display for DurationUnit

    §

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

    Formats the value using the given formatter. Read more
    §

    impl Hash for DurationUnit

    §

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

    Trait Implementations§

    source§

    impl Clone for DurationUnit

    source§

    fn clone(&self) -> DurationUnit

    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 DurationUnit

    source§

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

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

    impl Default for DurationUnit

    source§

    fn default() -> DurationUnit

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

    impl Display for DurationUnit

    source§

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

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

    impl Hash for DurationUnit

    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 PartialEq<DurationUnit> for DurationUnit

    §

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

    This method tests for self and other values to be equal, and is used + Self: Sized,
    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl PartialEq<DurationUnit> for DurationUnit

    source§

    fn eq(&self, other: &DurationUnit) -> 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 Copy for DurationUnit

    §

    impl Eq for DurationUnit

    §

    impl StructuralEq for DurationUnit

    §

    impl StructuralPartialEq for DurationUnit

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +sufficient, and should not be overridden without very good reason.

    source§

    impl Copy for DurationUnit

    source§

    impl Eq for DurationUnit

    source§

    impl StructuralEq for DurationUnit

    source§

    impl StructuralPartialEq for DurationUnit

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for DurationUnit

    §

    impl Send for DurationUnit

    §

    impl Sync for DurationUnit

    §

    impl Unpin for DurationUnit

    §

    impl UnwindSafe for DurationUnit

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    const: unstable · source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> CallHasher for Twhere diff --git a/relay_metrics/enum.FractionUnit.html b/relay_metrics/enum.FractionUnit.html index 94d0d68d58..5ea8b13ad8 100644 --- a/relay_metrics/enum.FractionUnit.html +++ b/relay_metrics/enum.FractionUnit.html @@ -1,16 +1,16 @@ -FractionUnit in relay_metrics - Rust
    pub enum FractionUnit {
    +FractionUnit in relay_metrics - Rust
    pub enum FractionUnit {
         Ratio,
         Percent,
     }
    Expand description

    Units of fraction used in MetricUnit::Fraction.

    Defaults to ratio.

    Variants§

    §

    Ratio

    Floating point fraction of 1.

    §

    Percent

    Ratio expressed as a fraction of 100. 100% equals a ratio of 1.0.

    -

    Trait Implementations§

    §

    impl Clone for FractionUnit

    §

    fn clone(&self) -> FractionUnit

    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 FractionUnit

    §

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

    Formats the value using the given formatter. Read more
    §

    impl Default for FractionUnit

    §

    fn default() -> FractionUnit

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

    impl Display for FractionUnit

    §

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

    Formats the value using the given formatter. Read more
    §

    impl Hash for FractionUnit

    §

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

    Trait Implementations§

    source§

    impl Clone for FractionUnit

    source§

    fn clone(&self) -> FractionUnit

    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 FractionUnit

    source§

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

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

    impl Default for FractionUnit

    source§

    fn default() -> FractionUnit

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

    impl Display for FractionUnit

    source§

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

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

    impl Hash for FractionUnit

    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 PartialEq<FractionUnit> for FractionUnit

    §

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

    This method tests for self and other values to be equal, and is used + Self: Sized,

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

    impl PartialEq<FractionUnit> for FractionUnit

    source§

    fn eq(&self, other: &FractionUnit) -> 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 Copy for FractionUnit

    §

    impl Eq for FractionUnit

    §

    impl StructuralEq for FractionUnit

    §

    impl StructuralPartialEq for FractionUnit

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for FractionUnit

    §

    impl Send for FractionUnit

    §

    impl Sync for FractionUnit

    §

    impl Unpin for FractionUnit

    §

    impl UnwindSafe for FractionUnit

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +sufficient, and should not be overridden without very good reason.

    source§

    impl Copy for FractionUnit

    source§

    impl Eq for FractionUnit

    source§

    impl StructuralEq for FractionUnit

    source§

    impl StructuralPartialEq for FractionUnit

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for FractionUnit

    §

    impl Send for FractionUnit

    §

    impl Sync for FractionUnit

    §

    impl Unpin for FractionUnit

    §

    impl UnwindSafe for FractionUnit

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    const: unstable · source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> CallHasher for Twhere diff --git a/relay_metrics/enum.InformationUnit.html b/relay_metrics/enum.InformationUnit.html index 8240a3fcbe..5d7b241478 100644 --- a/relay_metrics/enum.InformationUnit.html +++ b/relay_metrics/enum.InformationUnit.html @@ -1,4 +1,4 @@ -InformationUnit in relay_metrics - Rust

    Trait Implementations§

    §

    impl Clone for InformationUnit

    §

    fn clone(&self) -> InformationUnit

    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 InformationUnit

    §

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

    Formats the value using the given formatter. Read more
    §

    impl Default for InformationUnit

    §

    fn default() -> InformationUnit

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

    impl Display for InformationUnit

    §

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

    Formats the value using the given formatter. Read more
    §

    impl Hash for InformationUnit

    §

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

    Trait Implementations§

    source§

    impl Clone for InformationUnit

    source§

    fn clone(&self) -> InformationUnit

    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 InformationUnit

    source§

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

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

    impl Default for InformationUnit

    source§

    fn default() -> InformationUnit

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

    impl Display for InformationUnit

    source§

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

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

    impl Hash for InformationUnit

    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 PartialEq<InformationUnit> for InformationUnit

    §

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

    This method tests for self and other values to be equal, and is used + Self: Sized,

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

    impl PartialEq<InformationUnit> for InformationUnit

    source§

    fn eq(&self, other: &InformationUnit) -> 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 Copy for InformationUnit

    §

    impl Eq for InformationUnit

    §

    impl StructuralEq for InformationUnit

    §

    impl StructuralPartialEq for InformationUnit

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for InformationUnit

    §

    impl Send for InformationUnit

    §

    impl Sync for InformationUnit

    §

    impl Unpin for InformationUnit

    §

    impl UnwindSafe for InformationUnit

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +sufficient, and should not be overridden without very good reason.

    source§

    impl Copy for InformationUnit

    source§

    impl Eq for InformationUnit

    source§

    impl StructuralEq for InformationUnit

    source§

    impl StructuralPartialEq for InformationUnit

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for InformationUnit

    §

    impl Send for InformationUnit

    §

    impl Sync for InformationUnit

    §

    impl Unpin for InformationUnit

    §

    impl UnwindSafe for InformationUnit

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    const: unstable · source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> CallHasher for Twhere diff --git a/relay_metrics/enum.MetricUnit.html b/relay_metrics/enum.MetricUnit.html index 24673bdc4e..b9bee7362f 100644 --- a/relay_metrics/enum.MetricUnit.html +++ b/relay_metrics/enum.MetricUnit.html @@ -1,4 +1,4 @@ -MetricUnit in relay_metrics - Rust

    Implementations§

    §

    impl MetricUnit

    pub fn is_none(&self) -> bool

    Returns true if the metric_unit is None.

    -

    Trait Implementations§

    §

    impl Clone for MetricUnit

    §

    fn clone(&self) -> MetricUnit

    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 MetricUnit

    §

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

    Formats the value using the given formatter. Read more
    §

    impl Default for MetricUnit

    §

    fn default() -> MetricUnit

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

    impl<'de> Deserialize<'de> for MetricUnit

    §

    fn deserialize<D>( +

    Implementations§

    source§

    impl MetricUnit

    source

    pub fn is_none(&self) -> bool

    Returns true if the metric_unit is None.

    +

    Trait Implementations§

    source§

    impl Clone for MetricUnit

    source§

    fn clone(&self) -> MetricUnit

    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 MetricUnit

    source§

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

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

    impl Default for MetricUnit

    source§

    fn default() -> MetricUnit

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

    impl<'de> Deserialize<'de> for MetricUnit

    source§

    fn deserialize<D>( deserializer: D ) -> Result<MetricUnit, <D as Deserializer<'de>>::Error>where - D: Deserializer<'de>,

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

    impl Display for MetricUnit

    §

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

    Formats the value using the given formatter. Read more
    §

    impl FromStr for MetricUnit

    §

    type Err = ParseMetricUnitError

    The associated error which can be returned from parsing.
    §

    fn from_str(s: &str) -> Result<MetricUnit, <MetricUnit as FromStr>::Err>

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

    impl Hash for MetricUnit

    §

    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 MetricUnit

    source§

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

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

    impl FromStr for MetricUnit

    §

    type Err = ParseMetricUnitError

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

    fn from_str(s: &str) -> Result<MetricUnit, <MetricUnit as FromStr>::Err>

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

    impl Hash for MetricUnit

    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 JsonSchema for MetricUnit

    §

    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<MetricUnit> for MetricUnit

    §

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

    This method tests for self and other values to be equal, and is used + Self: Sized,

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

    impl JsonSchema for MetricUnit

    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<MetricUnit> for MetricUnit

    source§

    fn eq(&self, other: &MetricUnit) -> 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 Serialize for MetricUnit

    §

    fn serialize<S>( +sufficient, and should not be overridden without very good reason.

    source§

    impl Serialize for MetricUnit

    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 MetricUnit

    §

    impl Eq for MetricUnit

    §

    impl StructuralEq for MetricUnit

    §

    impl StructuralPartialEq for MetricUnit

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for MetricUnit

    §

    impl Send for MetricUnit

    §

    impl Sync for MetricUnit

    §

    impl Unpin for MetricUnit

    §

    impl UnwindSafe for MetricUnit

    Blanket Implementations§

    source§

    impl<T> Any for Twhere + S: Serializer,

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

    impl Copy for MetricUnit

    source§

    impl Eq for MetricUnit

    source§

    impl StructuralEq for MetricUnit

    source§

    impl StructuralPartialEq for MetricUnit

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for MetricUnit

    §

    impl Send for MetricUnit

    §

    impl Sync for MetricUnit

    §

    impl Unpin for MetricUnit

    §

    impl UnwindSafe for MetricUnit

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    const: unstable · source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> CallHasher for Twhere diff --git a/relay_metrics/fn.is_valid_metric_name.html b/relay_metrics/fn.is_valid_metric_name.html index 3a5f59e6b0..0d4270ff56 100644 --- a/relay_metrics/fn.is_valid_metric_name.html +++ b/relay_metrics/fn.is_valid_metric_name.html @@ -1,4 +1,4 @@ -is_valid_metric_name in relay_metrics - Rust
    pub fn is_valid_metric_name(name: &str) -> bool
    Expand description

    Validates a metric name. This is the statsd name, i.e. without type or unit.

    +is_valid_metric_name in relay_metrics - Rust
    pub fn is_valid_metric_name(name: &str) -> bool
    Expand description

    Validates a metric name. This is the statsd name, i.e. without type or unit.

    Metric names cannot be empty, must begin with a letter and can consist of ASCII alphanumerics, underscores, slashes and periods.

    \ No newline at end of file diff --git a/relay_metrics/struct.AggregatorService.html b/relay_metrics/struct.AggregatorService.html index ba65607cf6..e9059ac9a9 100644 --- a/relay_metrics/struct.AggregatorService.html +++ b/relay_metrics/struct.AggregatorService.html @@ -19,7 +19,7 @@

    Flushing

    Metrics with a recent timestamp are given a longer grace period than backdated metrics, which are flushed after a shorter debounce delay. See AggregatorConfig for configuration options.

    Internally, the aggregator maintains a continuous flush cycle every 100ms. It guarantees that -all elapsed buckets belonging to the same [ProjectKey] are flushed together.

    +all elapsed buckets belonging to the same ProjectKey are flushed together.

    Receivers must implement a handler for the FlushBuckets message.

    Implementations§

    source§

    impl AggregatorService

    source

    pub fn new( config: AggregatorConfig, @@ -29,24 +29,24 @@

    Flushing

    the given config.

    source

    pub fn insert( &mut self, - project_key: ProjectKey, + project_key: ProjectKey, metric: Metric ) -> Result<(), AggregateMetricsError>

    Inserts a metric into the corresponding bucket in this aggregator.

    If no bucket exists for the given bucket key, a new bucket will be created.

    source

    pub fn merge( &mut self, - project_key: ProjectKey, + project_key: ProjectKey, bucket: Bucket ) -> Result<(), AggregateMetricsError>

    Merge a preaggregated bucket into this aggregator.

    If no bucket exists for the given bucket key, a new bucket will be created.

    source

    pub fn merge_all<I>( &mut self, - project_key: ProjectKey, + project_key: ProjectKey, buckets: I ) -> Result<(), AggregateMetricsError>where I: IntoIterator<Item = Bucket>,

    Merges all given buckets into this aggregator.

    Buckets that do not exist yet will be created.

    -
    source

    pub fn pop_flush_buckets(&mut self) -> HashMap<ProjectKey, Vec<HashedBucket>>

    Pop and return the buckets that are eligible for flushing out according to bucket interval.

    +
    source

    pub fn pop_flush_buckets(&mut self) -> HashMap<ProjectKey, Vec<HashedBucket>>

    Pop and return the buckets that are eligible for flushing out according to bucket interval.

    Note that this function is primarily intended for tests.

    Trait Implementations§

    source§

    impl Debug for AggregatorService

    source§

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

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

    impl Drop for AggregatorService

    source§

    fn drop(&mut self)

    Executes the destructor for this type. Read more
    source§

    impl Service for AggregatorService

    §

    type Interface = Aggregator

    The interface of messages this service implements. Read more
    source§

    fn spawn_handler(self, rx: Receiver<Self::Interface>)

    Spawns a task to handle service messages. Read more
    §

    fn start(self) -> Addr<Self::Interface>

    Starts the service in the current runtime and returns an address for it.
    §

    fn start_in(self, runtime: &Runtime) -> Addr<Self::Interface>

    Starts the service in the given runtime and returns an address for it.
    §

    fn name() -> &'static str

    Returns a unique name for this service implementation. Read more

    Auto Trait Implementations§

    §

    impl !RefUnwindSafe for AggregatorService

    §

    impl Send for AggregatorService

    §

    impl Sync for AggregatorService

    §

    impl Unpin for AggregatorService

    §

    impl !UnwindSafe for AggregatorService

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for Twhere diff --git a/relay_metrics/struct.CustomUnit.html b/relay_metrics/struct.CustomUnit.html index 02ef09fa71..05fde3c725 100644 --- a/relay_metrics/struct.CustomUnit.html +++ b/relay_metrics/struct.CustomUnit.html @@ -1,6 +1,6 @@ -CustomUnit in relay_metrics - Rust
    pub struct CustomUnit(_);
    Expand description

    Custom user-defined units without builtin conversion.

    -

    Implementations§

    §

    impl CustomUnit

    pub fn parse(s: &str) -> Result<CustomUnit, ParseMetricUnitError>

    Parses a CustomUnit from a string.

    -

    pub fn as_str(&self) -> &str

    Returns the string representation of this unit.

    +CustomUnit in relay_metrics - Rust
    pub struct CustomUnit(_);
    Expand description

    Custom user-defined units without builtin conversion.

    +

    Implementations§

    source§

    impl CustomUnit

    source

    pub fn parse(s: &str) -> Result<CustomUnit, ParseMetricUnitError>

    Parses a CustomUnit from a string.

    +
    source

    pub fn as_str(&self) -> &str

    Returns the string representation of this unit.

    Methods from Deref<Target = str>§

    1.0.0 · source

    pub fn len(&self) -> usize

    Returns the length of self.

    This length is in bytes, not chars or graphemes. In other words, it might not be what a human considers the length of the string.

    @@ -1204,12 +1204,12 @@
    Examples
    let s = "Grüße, Jürgen ❤";
     
     assert_eq!("grüße, jürgen ❤", s.to_ascii_lowercase());
    -

    Trait Implementations§

    §

    impl Clone for CustomUnit

    §

    fn clone(&self) -> CustomUnit

    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 CustomUnit

    §

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

    Formats the value using the given formatter. Read more
    §

    impl Deref for CustomUnit

    §

    type Target = str

    The resulting type after dereferencing.
    §

    fn deref(&self) -> &<CustomUnit as Deref>::Target

    Dereferences the value.
    §

    impl Display for CustomUnit

    §

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

    Formats the value using the given formatter. Read more
    §

    impl FromStr for CustomUnit

    §

    type Err = ParseMetricUnitError

    The associated error which can be returned from parsing.
    §

    fn from_str(s: &str) -> Result<CustomUnit, <CustomUnit as FromStr>::Err>

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

    impl Hash for CustomUnit

    §

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

    Trait Implementations§

    source§

    impl Clone for CustomUnit

    source§

    fn clone(&self) -> CustomUnit

    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 CustomUnit

    source§

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

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

    impl Deref for CustomUnit

    §

    type Target = str

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &<CustomUnit as Deref>::Target

    Dereferences the value.
    source§

    impl Display for CustomUnit

    source§

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

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

    impl FromStr for CustomUnit

    §

    type Err = ParseMetricUnitError

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

    fn from_str(s: &str) -> Result<CustomUnit, <CustomUnit as FromStr>::Err>

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

    impl Hash for CustomUnit

    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 PartialEq<CustomUnit> for CustomUnit

    §

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

    This method tests for self and other values to be equal, and is used + Self: Sized,

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

    impl PartialEq<CustomUnit> for CustomUnit

    source§

    fn eq(&self, other: &CustomUnit) -> 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 Copy for CustomUnit

    §

    impl Eq for CustomUnit

    §

    impl StructuralEq for CustomUnit

    §

    impl StructuralPartialEq for CustomUnit

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for CustomUnit

    §

    impl Send for CustomUnit

    §

    impl Sync for CustomUnit

    §

    impl Unpin for CustomUnit

    §

    impl UnwindSafe for CustomUnit

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +sufficient, and should not be overridden without very good reason.

    source§

    impl Copy for CustomUnit

    source§

    impl Eq for CustomUnit

    source§

    impl StructuralEq for CustomUnit

    source§

    impl StructuralPartialEq for CustomUnit

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for CustomUnit

    §

    impl Send for CustomUnit

    §

    impl Sync for CustomUnit

    §

    impl Unpin for CustomUnit

    §

    impl UnwindSafe for CustomUnit

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    const: unstable · source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> CallHasher for Twhere diff --git a/relay_metrics/struct.FlushBuckets.html b/relay_metrics/struct.FlushBuckets.html index 149d277c03..d37e581615 100644 --- a/relay_metrics/struct.FlushBuckets.html +++ b/relay_metrics/struct.FlushBuckets.html @@ -1,5 +1,5 @@ FlushBuckets in relay_metrics - Rust
    pub struct FlushBuckets {
    -    pub project_key: ProjectKey,
    +    pub project_key: ProjectKey,
         pub partition_key: Option<u64>,
         pub buckets: Vec<Bucket>,
     }
    Expand description

    A message containing a vector of buckets to be flushed.

    @@ -9,7 +9,7 @@
  • If flushing fails and should be retried at a later time, respond with Err containing the failed buckets. They will be merged back into the aggregator and flushed at a later time.
  • -

    Fields§

    §project_key: ProjectKey

    The project key.

    +

    Fields§

    §project_key: ProjectKey

    The project key.

    §partition_key: Option<u64>

    The logical partition to send this batch to.

    §buckets: Vec<Bucket>

    The buckets to be flushed.

    Trait Implementations§

    source§

    impl Clone for FlushBuckets

    source§

    fn clone(&self) -> FlushBuckets

    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 FlushBuckets

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere diff --git a/relay_metrics/struct.InsertMetrics.html b/relay_metrics/struct.InsertMetrics.html index 9e494c3049..6438e841f5 100644 --- a/relay_metrics/struct.InsertMetrics.html +++ b/relay_metrics/struct.InsertMetrics.html @@ -1,7 +1,7 @@ InsertMetrics in relay_metrics - Rust
    pub struct InsertMetrics { /* private fields */ }
    Expand description

    A message containing a list of Metrics to be inserted into the aggregator.

    -

    Implementations§

    source§

    impl InsertMetrics

    source

    pub fn new<I>(project_key: ProjectKey, metrics: I) -> Selfwhere +

    Implementations§

    source§

    impl InsertMetrics

    source

    pub fn new<I>(project_key: ProjectKey, metrics: I) -> Selfwhere I: IntoIterator<Item = Metric>,

    Creates a new message containing a list of Metrics.

    -
    source

    pub fn project_key(&self) -> ProjectKey

    Returns the ProjectKey for the the current InsertMetrics message.

    +
    source

    pub fn project_key(&self) -> ProjectKey

    Returns the ProjectKey for the the current InsertMetrics message.

    source

    pub fn metrics(self) -> Vec<Metric>

    Returns the list of the metrics in the current InsertMetrics message, consuming the message itself.

    Trait Implementations§

    source§

    impl Debug for InsertMetrics

    source§

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

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

    impl FromMessage<InsertMetrics> for Aggregator

    §

    type Response = NoResponse

    The behavior declaring the return value when sending this message.
    source§

    fn from_message(message: InsertMetrics, _: ()) -> Self

    Converts the message into the service interface.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere diff --git a/relay_metrics/struct.MergeBuckets.html b/relay_metrics/struct.MergeBuckets.html index bab5d98cee..0ff7dc9aac 100644 --- a/relay_metrics/struct.MergeBuckets.html +++ b/relay_metrics/struct.MergeBuckets.html @@ -1,6 +1,6 @@ MergeBuckets in relay_metrics - Rust
    pub struct MergeBuckets { /* private fields */ }
    Expand description

    A message containing a list of Buckets to be inserted into the aggregator.

    -

    Implementations§

    source§

    impl MergeBuckets

    source

    pub fn new(project_key: ProjectKey, buckets: Vec<Bucket>) -> Self

    Creates a new message containing a list of Buckets.

    -
    source

    pub fn project_key(&self) -> ProjectKey

    Returns the ProjectKey for the the current MergeBuckets message.

    +

    Implementations§

    source§

    impl MergeBuckets

    source

    pub fn new(project_key: ProjectKey, buckets: Vec<Bucket>) -> Self

    Creates a new message containing a list of Buckets.

    +
    source

    pub fn project_key(&self) -> ProjectKey

    Returns the ProjectKey for the the current MergeBuckets message.

    source

    pub fn buckets(self) -> Vec<Bucket>

    Returns the list of the buckets in the current MergeBuckets message, consuming the message itself.

    Trait Implementations§

    source§

    impl Debug for MergeBuckets

    source§

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

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

    impl FromMessage<MergeBuckets> for Aggregator

    §

    type Response = NoResponse

    The behavior declaring the return value when sending this message.
    source§

    fn from_message(message: MergeBuckets, _: ()) -> Self

    Converts the message into the service interface.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere diff --git a/relay_metrics/struct.ParseMetricUnitError.html b/relay_metrics/struct.ParseMetricUnitError.html index 2f4ce9ec29..884c00d3c7 100644 --- a/relay_metrics/struct.ParseMetricUnitError.html +++ b/relay_metrics/struct.ParseMetricUnitError.html @@ -1,5 +1,5 @@ -ParseMetricUnitError in relay_metrics - Rust
    pub struct ParseMetricUnitError(_);
    Expand description

    An error parsing a MetricUnit or one of its variants.

    -

    Trait Implementations§

    §

    impl Clone for ParseMetricUnitError

    §

    fn clone(&self) -> ParseMetricUnitError

    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 ParseMetricUnitError

    §

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

    Formats the value using the given formatter. Read more
    §

    impl Copy for ParseMetricUnitError

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +ParseMetricUnitError in relay_metrics - Rust
    pub struct ParseMetricUnitError(_);
    Expand description

    An error parsing a MetricUnit or one of its variants.

    +

    Trait Implementations§

    source§

    impl Clone for ParseMetricUnitError

    source§

    fn clone(&self) -> ParseMetricUnitError

    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 ParseMetricUnitError

    source§

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

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

    impl Copy for ParseMetricUnitError

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    const: unstable · source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> DynClone for Twhere diff --git a/relay_metrics/struct.UnixTimestamp.html b/relay_metrics/struct.UnixTimestamp.html index 5f1161cec9..f20a8b3b12 100644 --- a/relay_metrics/struct.UnixTimestamp.html +++ b/relay_metrics/struct.UnixTimestamp.html @@ -1,20 +1,20 @@ -UnixTimestamp in relay_metrics - Rust
    pub struct UnixTimestamp(_);
    Expand description

    A unix timestamp (full seconds elapsed since 1970-01-01 00:00 UTC).

    -

    Implementations§

    §

    impl UnixTimestamp

    pub fn from_secs(secs: u64) -> UnixTimestamp

    Creates a unix timestamp from the given number of seconds.

    -

    pub fn from_system(time: SystemTime) -> UnixTimestamp

    Creates a unix timestamp from the given system time.

    -

    pub fn from_datetime( +UnixTimestamp in relay_metrics - Rust
    pub struct UnixTimestamp(_);
    Expand description

    A unix timestamp (full seconds elapsed since 1970-01-01 00:00 UTC).

    +

    Implementations§

    source§

    impl UnixTimestamp

    source

    pub fn from_secs(secs: u64) -> UnixTimestamp

    Creates a unix timestamp from the given number of seconds.

    +
    source

    pub fn from_system(time: SystemTime) -> UnixTimestamp

    Creates a unix timestamp from the given system time.

    +
    source

    pub fn from_datetime( date_time: DateTime<impl TimeZone> ) -> Option<UnixTimestamp>

    Creates a unix timestamp from the given chrono DateTime.

    Returns Some if this is a valid date time starting with 1970-01-01 00:00 UTC. If the date lies before the UNIX epoch, this function returns None.

    -

    pub fn from_instant(instant: Instant) -> UnixTimestamp

    Converts the given Instant into a UNIX timestamp.

    +
    source

    pub fn from_instant(instant: Instant) -> UnixTimestamp

    Converts the given Instant into a UNIX timestamp.

    This is done by comparing the Instant with the current system time. Note that the system time is subject to skew, so subsequent calls to from_instant may return different values.

    -

    pub fn now() -> UnixTimestamp

    Returns the current timestamp.

    -

    pub fn as_secs(self) -> u64

    Returns the number of seconds since the UNIX epoch start.

    -

    pub fn as_datetime(self) -> Option<DateTime<Utc>>

    Returns the timestamp as chrono datetime.

    -

    pub fn to_instant(self) -> MonotonicResult

    Converts the UNIX timestamp into an Instant based on the current system timestamp.

    -

    Returns [MonotonicResult::Instant] if the timestamp can be represented. Otherwise, returns -[MonotonicResult::Past] or [MonotonicResult::Future].

    +
    source

    pub fn now() -> UnixTimestamp

    Returns the current timestamp.

    +
    source

    pub fn as_secs(self) -> u64

    Returns the number of seconds since the UNIX epoch start.

    +
    source

    pub fn as_datetime(self) -> Option<DateTime<Utc>>

    Returns the timestamp as chrono datetime.

    +
    source

    pub fn to_instant(self) -> MonotonicResult

    Converts the UNIX timestamp into an Instant based on the current system timestamp.

    +

    Returns MonotonicResult::Instant if the timestamp can be represented. Otherwise, returns +MonotonicResult::Past or MonotonicResult::Future.

    Note that the system time is subject to skew, so subsequent calls to to_instant may return different values.

    Example
    @@ -25,27 +25,27 @@
    Example
    if let MonotonicResult::Instant(instant) = timestamp.to_instant() { assert!((Instant::now() - instant) < Duration::from_millis(1)); }
    -

    Trait Implementations§

    §

    impl Clone for UnixTimestamp

    §

    fn clone(&self) -> UnixTimestamp

    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 UnixTimestamp

    §

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

    Formats the value using the given formatter. Read more
    §

    impl<'de> Deserialize<'de> for UnixTimestamp

    §

    fn deserialize<D>( +

    Trait Implementations§

    source§

    impl Clone for UnixTimestamp

    source§

    fn clone(&self) -> UnixTimestamp

    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 UnixTimestamp

    source§

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

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

    impl<'de> Deserialize<'de> for UnixTimestamp

    source§

    fn deserialize<D>( deserializer: D ) -> Result<UnixTimestamp, <D as Deserializer<'de>>::Error>where - D: Deserializer<'de>,

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

    impl Display for UnixTimestamp

    §

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

    Formats the value using the given formatter. Read more
    §

    impl FromStr for UnixTimestamp

    §

    type Err = ParseUnixTimestampError

    The associated error which can be returned from parsing.
    §

    fn from_str(s: &str) -> Result<UnixTimestamp, <UnixTimestamp as FromStr>::Err>

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

    impl Hash for UnixTimestamp

    §

    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 UnixTimestamp

    source§

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

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

    impl FromStr for UnixTimestamp

    §

    type Err = ParseUnixTimestampError

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

    fn from_str(s: &str) -> Result<UnixTimestamp, <UnixTimestamp as FromStr>::Err>

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

    impl Hash for UnixTimestamp

    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 Ord for UnixTimestamp

    §

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

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

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

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

    impl Ord for UnixTimestamp

    source§

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

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

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

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

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

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

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

    Restrict a value to a certain interval. Read more
    §

    impl PartialEq<UnixTimestamp> for UnixTimestamp

    §

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

    This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd<Self>,

    Restrict a value to a certain interval. Read more

    source§

    impl PartialEq<UnixTimestamp> for UnixTimestamp

    source§

    fn eq(&self, other: &UnixTimestamp) -> 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<UnixTimestamp> for UnixTimestamp

    §

    fn partial_cmp(&self, other: &UnixTimestamp) -> 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<UnixTimestamp> for UnixTimestamp

    source§

    fn partial_cmp(&self, other: &UnixTimestamp) -> 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
    §

    impl Serialize for UnixTimestamp

    §

    fn serialize<S>( +operator. Read more

    source§

    impl Serialize for UnixTimestamp

    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 Sub<UnixTimestamp> for UnixTimestamp

    §

    type Output = Duration

    The resulting type after applying the - operator.
    §

    fn sub( + S: Serializer,

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

    impl Sub<UnixTimestamp> for UnixTimestamp

    §

    type Output = Duration

    The resulting type after applying the - operator.
    source§

    fn sub( self, rhs: UnixTimestamp -) -> <UnixTimestamp as Sub<UnixTimestamp>>::Output

    Performs the - operation. Read more
    §

    impl Copy for UnixTimestamp

    §

    impl Eq for UnixTimestamp

    §

    impl StructuralEq for UnixTimestamp

    §

    impl StructuralPartialEq for UnixTimestamp

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +) -> <UnixTimestamp as Sub<UnixTimestamp>>::Output

    Performs the - operation. Read more
    source§

    impl Copy for UnixTimestamp

    source§

    impl Eq for UnixTimestamp

    source§

    impl StructuralEq for UnixTimestamp

    source§

    impl StructuralPartialEq for UnixTimestamp

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    const: unstable · source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> CallHasher for Twhere diff --git a/relay_quotas/enum.DataCategory.html b/relay_quotas/enum.DataCategory.html index c0ed1a29cd..111f7e19f9 100644 --- a/relay_quotas/enum.DataCategory.html +++ b/relay_quotas/enum.DataCategory.html @@ -1,4 +1,4 @@ -DataCategory in relay_quotas - Rust

    Implementations§

    §

    impl DataCategory

    pub fn from_name(string: &str) -> DataCategory

    Returns the data category corresponding to the given name.

    -

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

    Returns the canonical name of this data category.

    -

    pub fn is_error(self) -> bool

    Returns true if the DataCategory refers to an error (i.e an error event).

    -

    pub fn value(self) -> Option<u8>

    Returns the numeric value for this outcome.

    -

    pub fn index_category(self) -> Option<DataCategory>

    Returns a dedicated category for indexing if this data can be converted to metrics.

    +

    Implementations§

    source§

    impl DataCategory

    source

    pub fn from_name(string: &str) -> DataCategory

    Returns the data category corresponding to the given name.

    +
    source

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

    Returns the canonical name of this data category.

    +
    source

    pub fn is_error(self) -> bool

    Returns true if the DataCategory refers to an error (i.e an error event).

    +
    source

    pub fn value(self) -> Option<u8>

    Returns the numeric value for this outcome.

    +
    source

    pub fn index_category(self) -> Option<DataCategory>

    Returns a dedicated category for indexing if this data can be converted to metrics.

    This returns None for most data categories.

    -

    Trait Implementations§

    §

    impl Clone for DataCategory

    §

    fn clone(&self) -> DataCategory

    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 DataCategory

    §

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

    Formats the value using the given formatter. Read more
    §

    impl<'de> Deserialize<'de> for DataCategory

    §

    fn deserialize<__D>( +

    Trait Implementations§

    source§

    impl Clone for DataCategory

    source§

    fn clone(&self) -> DataCategory

    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 DataCategory

    source§

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

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

    impl<'de> Deserialize<'de> for DataCategory

    source§

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

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

    impl Display for DataCategory

    §

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

    Formats the value using the given formatter. Read more
    §

    impl From<EventType> for DataCategory

    §

    fn from(ty: EventType) -> DataCategory

    Converts to this type from the input type.
    §

    impl FromStr for DataCategory

    §

    type Err = ()

    The associated error which can be returned from parsing.
    §

    fn from_str( + __D: Deserializer<'de>,

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

    impl Display for DataCategory

    source§

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

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

    impl From<EventType> for DataCategory

    source§

    fn from(ty: EventType) -> DataCategory

    Converts to this type from the input type.
    source§

    impl FromStr for DataCategory

    §

    type Err = ()

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

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

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

    impl Hash for DataCategory

    §

    fn hash<__H>(&self, state: &mut __H)where +) -> Result<DataCategory, <DataCategory as FromStr>::Err>

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

    impl Hash for DataCategory

    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 Ord for DataCategory

    §

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

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

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

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

    impl Ord for DataCategory

    source§

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

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

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

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

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

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

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

    Restrict a value to a certain interval. Read more
    §

    impl PartialEq<DataCategory> for DataCategory

    §

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

    This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd<Self>,

    Restrict a value to a certain interval. Read more

    source§

    impl PartialEq<DataCategory> for DataCategory

    source§

    fn eq(&self, other: &DataCategory) -> 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<DataCategory> for DataCategory

    §

    fn partial_cmp(&self, other: &DataCategory) -> 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<DataCategory> for DataCategory

    source§

    fn partial_cmp(&self, other: &DataCategory) -> 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
    §

    impl Serialize for DataCategory

    §

    fn serialize<__S>( +operator. Read more

    source§

    impl Serialize for DataCategory

    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 DataCategory

    §

    impl Eq for DataCategory

    §

    impl StructuralEq for DataCategory

    §

    impl StructuralPartialEq for DataCategory

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

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

    impl Copy for DataCategory

    source§

    impl Eq for DataCategory

    source§

    impl StructuralEq for DataCategory

    source§

    impl StructuralPartialEq for DataCategory

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for DataCategory

    §

    impl Send for DataCategory

    §

    impl Sync for DataCategory

    §

    impl Unpin for DataCategory

    §

    impl UnwindSafe for DataCategory

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    const: unstable · source§

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

    Mutably borrows from an owned value. Read more
    §

    impl<T> CallHasher for Twhere diff --git a/relay_quotas/enum.RateLimitScope.html b/relay_quotas/enum.RateLimitScope.html index a773a021c0..f95f0f21b7 100644 --- a/relay_quotas/enum.RateLimitScope.html +++ b/relay_quotas/enum.RateLimitScope.html @@ -1,14 +1,14 @@ RateLimitScope in relay_quotas - Rust
    pub enum RateLimitScope {
         Organization(u64),
    -    Project(ProjectId),
    -    Key(ProjectKey),
    +    Project(ProjectId),
    +    Key(ProjectKey),
     }
    Expand description

    The scope that a rate limit applied to.

    As opposed to QuotaScope, which only declared the class of the scope, this also carries information about the scope instance. That is, the specific identifiers of the individual scopes that a rate limit applied to.

    Variants§

    §

    Organization(u64)

    An organization with identifier.

    -
    §

    Project(ProjectId)

    A project with identifier.

    -
    §

    Key(ProjectKey)

    A DSN public key.

    +
    §

    Project(ProjectId)

    A project with identifier.

    +
    §

    Key(ProjectKey)

    A DSN public key.

    Implementations§

    source§

    impl RateLimitScope

    source

    pub fn for_quota(scoping: &Scoping, scope: QuotaScope) -> Self

    Extracts a rate limiting scope from the given item scoping for a specific quota.

    source

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

    Returns the canonical name of this scope.

    Trait Implementations§

    source§

    impl Clone for RateLimitScope

    source§

    fn clone(&self) -> RateLimitScope

    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 RateLimitScope

    source§

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

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

    impl PartialEq<RateLimitScope> for RateLimitScope

    source§

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

    This method tests for self and other values to be equal, and is used diff --git a/relay_quotas/enum.RateLimitingError.html b/relay_quotas/enum.RateLimitingError.html index 73768400fb..1af2d17278 100644 --- a/relay_quotas/enum.RateLimitingError.html +++ b/relay_quotas/enum.RateLimitingError.html @@ -1,7 +1,7 @@ RateLimitingError in relay_quotas - Rust
    pub enum RateLimitingError {
    -    Redis(RedisError),
    +    Redis(RedisError),
     }
    Expand description

    An error returned by RedisRateLimiter.

    -

    Variants§

    §

    Redis(RedisError)

    Failed to communicate with Redis.

    +

    Variants§

    §

    Redis(RedisError)

    Failed to communicate with Redis.

    Trait Implementations§

    source§

    impl Debug for RateLimitingError

    source§

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

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

    impl Display for RateLimitingError

    source§

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

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

    impl Error for RateLimitingError

    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, demand: &mut Demand<'a>)

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

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    const: unstable · source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere diff --git a/relay_quotas/struct.RedisRateLimiter.html b/relay_quotas/struct.RedisRateLimiter.html index 998ebfe367..78f1c098f3 100644 --- a/relay_quotas/struct.RedisRateLimiter.html +++ b/relay_quotas/struct.RedisRateLimiter.html @@ -5,7 +5,7 @@ quotas allow to specify the data categories they apply to, for example error events or attachments. For more information on quota parameters, see QuotaConfig.

    Requires the redis feature.

    -

    Implementations§

    source§

    impl RedisRateLimiter

    source

    pub fn new(pool: RedisPool) -> Self

    Creates a new RedisRateLimiter instance.

    +

    Implementations§

    source§

    impl RedisRateLimiter

    source

    pub fn new(pool: RedisPool) -> Self

    Creates a new RedisRateLimiter instance.

    source

    pub fn max_limit(self, max_limit: Option<u64>) -> Self

    Sets the maximum rate limit in seconds.

    By default, this rate limiter will return rate limits based on the quotas’ window fields. If a maximum rate limit is set, this limit is bounded.

    diff --git a/relay_quotas/struct.Scoping.html b/relay_quotas/struct.Scoping.html index 5673b22c56..654899fbc0 100644 --- a/relay_quotas/struct.Scoping.html +++ b/relay_quotas/struct.Scoping.html @@ -1,13 +1,13 @@ Scoping in relay_quotas - Rust

    Struct relay_quotas::Scoping

    source ·
    pub struct Scoping {
         pub organization_id: u64,
    -    pub project_id: ProjectId,
    -    pub project_key: ProjectKey,
    +    pub project_id: ProjectId,
    +    pub project_key: ProjectKey,
         pub key_id: Option<u64>,
     }
    Expand description

    Data scoping information.

    This structure holds information of all scopes required for attributing an item to quotas.

    Fields§

    §organization_id: u64

    The organization id.

    -
    §project_id: ProjectId

    The project id.

    -
    §project_key: ProjectKey

    The DSN public key.

    +
    §project_id: ProjectId

    The project id.

    +
    §project_key: ProjectKey

    The DSN public key.

    §key_id: Option<u64>

    The public key’s internal id.

    Implementations§

    source§

    impl Scoping

    source

    pub fn item(&self, category: DataCategory) -> ItemScoping<'_>

    Returns an ItemScoping for this scope.

    The item scoping will contain a reference to this scope and the information passed to this diff --git a/relay_sampling/struct.DynamicSamplingContext.html b/relay_sampling/struct.DynamicSamplingContext.html index ac9ada1add..6bd770d7cd 100644 --- a/relay_sampling/struct.DynamicSamplingContext.html +++ b/relay_sampling/struct.DynamicSamplingContext.html @@ -1,6 +1,6 @@ DynamicSamplingContext in relay_sampling - Rust

    pub struct DynamicSamplingContext {
         pub trace_id: Uuid,
    -    pub public_key: ProjectKey,
    +    pub public_key: ProjectKey,
         pub release: Option<String>,
         pub environment: Option<String>,
         pub transaction: Option<String>,
    @@ -13,7 +13,7 @@
     representable as HashMap<String, String>, meaning no nested dictionaries/objects, arrays or
     other non-string values.

    Fields§

    §trace_id: Uuid

    ID created by clients to represent the current call flow.

    -
    §public_key: ProjectKey

    The project key.

    +
    §public_key: ProjectKey

    The project key.

    §release: Option<String>

    The release.

    §environment: Option<String>

    The environment.

    §transaction: Option<String>

    The name of the transaction extracted from the transaction field in the starting @@ -25,7 +25,7 @@ user object).

    §replay_id: Option<Uuid>

    If the event occurred during a session replay, the associated replay_id is added to the DSC.

    §other: BTreeMap<String, Value>

    Additional arbitrary fields for forwards compatibility.

    -

    Implementations§

    source§

    impl DynamicSamplingContext

    source

    pub fn from_transaction(public_key: ProjectKey, event: &Event) -> Option<Self>

    Computes a dynamic sampling context from a transaction event.

    +

    Implementations§

    source§

    impl DynamicSamplingContext

    source

    pub fn from_transaction(public_key: ProjectKey, event: &Event) -> Option<Self>

    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 trace ID in its trace context. All optional fields in the dynamic sampling context are populated with the corresponding attributes from the event payload if they are available.

    diff --git a/settings.html b/settings.html index 03d50cd841..76e9324b66 100644 --- a/settings.html +++ b/settings.html @@ -1 +1 @@ -Rustdoc settings

    Rustdoc settings

    Back
    \ No newline at end of file +Rustdoc settings

    Rustdoc settings

    Back
    \ No newline at end of file diff --git a/src/relay_server/metrics_extraction/spans/mod.rs.html b/src/relay_server/metrics_extraction/spans/mod.rs.html index 7a6590ad69..6b064b4ccc 100644 --- a/src/relay_server/metrics_extraction/spans/mod.rs.html +++ b/src/relay_server/metrics_extraction/spans/mod.rs.html @@ -1058,6 +1058,19 @@ 1058 1059 1060 +1061 +1062 +1063 +1064 +1065 +1066 +1067 +1068 +1069 +1070 +1071 +1072 +1073
    use crate::metrics_extraction::spans::types::{SpanMetric, SpanTagKey};
     use crate::metrics_extraction::transactions::types::ExtractMetricsError;
     use crate::metrics_extraction::utils::extract_http_status_code;
    @@ -1228,8 +1241,10 @@
                         None
                     };
     
    -                if let Some(dom) = domain.clone() {
    -                    span_tags.insert(SpanTagKey::Domain, dom);
    +                if !span_op.starts_with("db.redis") {
    +                    if let Some(dom) = domain.clone() {
    +                        span_tags.insert(SpanTagKey::Domain, dom);
    +                    }
                     }
     
                     let scrubbed_description = span
    @@ -2072,6 +2087,17 @@
                         "status": "ok",
                         "data": {}
                     },
    +                {
    +                    "description": "SET 'aaa:bbb:123:zzz' '{\"from json\": \"no\"}'",
    +                    "op": "db.redis",
    +                    "parent_span_id": "8f5a2b8768cafb4e",
    +                    "span_id": "bb7af8b99e95af5f",
    +                    "start_timestamp": 1597976300.0000000,
    +                    "timestamp": 1597976302.0000000,
    +                    "trace_id": "ff62a8b040f340bda5d830223def1d81",
    +                    "status": "ok",
    +                    "data": {}
    +                },
                     {
                         "description": "http://domain/static/myscript-v1.9.23.js",
                         "op": "resource.script",