diff --git a/help.html b/help.html index 05ba25fe0b..84f9034b0c 100644 --- a/help.html +++ b/help.html @@ -1 +1 @@ -
pub enum DataCategory {
+DataCategory in relay_cabi - Rust Enum relay_cabi::DataCategory
source · 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.
-
Returns the data category corresponding to the given name.
-Returns true if the DataCategory refers to an error (i.e an error event).
-Returns a dedicated category for indexing if this data can be converted to metrics.
+Returns the data category corresponding to the given name.
+Returns true if the DataCategory refers to an error (i.e an error event).
+Returns a dedicated category for indexing if this data can be converted to metrics.
This returns None
for most data categories.
source
. Read moresource
. Read mores
to return a value of this type. Read moreself
and other
values to be equal, and is used
+ Self: Sized + PartialOrd<Self>,self
and other
values to be equal, and is used
by ==
.self
and other
) and is used by the <=
operator. Read morepub enum EventType {
+EventType in relay_cabi - Rust Enum relay_cabi::EventType
source · pub enum EventType {
Error,
Csp,
Hpkp,
@@ -25,10 +25,10 @@
§ExpectStaple
An ExpectStaple violation payload.
§Transaction
Performance monitoring transactions carrying spans.
§Default
All events that do not qualify as any other type.
-
$ref
keyword. Read more$ref
keyword. Read moreself
and other
values to be equal, and is used
+ Self: Sized + PartialOrd<Self>,self
and other
) and is used by the <=
operator. Read morepub enum SpanStatus {
+SpanStatus in relay_cabi - Rust Enum relay_cabi::SpanStatus
source · pub enum SpanStatus {
Show 17 variants
Ok,
Cancelled,
Unknown,
@@ -50,7 +50,7 @@
§DataLoss
Unrecoverable data loss or corruption
§Unauthenticated
401 Unauthorized (actually does mean unauthenticated according to RFC 7235)
Prefer PermissionDenied if a user is logged in.
-
source
. Read moresource
. Read mores
to return a value of this type. Read more$ref
keyword. Read more$ref
keyword. Read moreself
and other
values to be equal, and is used
by ==
.pub struct AuthConfig {
pub ready: ReadinessCondition,
- pub static_relays: HashMap<RelayId, RelayInfo>,
+ pub static_relays: HashMap<RelayId, RelayInfo>,
}
Authentication options.
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.
Set new credentials.
This also writes the credentials back to the file.
Returns true
if the config is ready to use.
Returns the secret key if set.
-Returns the public key if set.
-Returns the secret key if set.
+Returns the public key if set.
+Returns the relay mode.
Returns the upstream target as descriptor.
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.
-Redis servers to connect to, for rate limiting.
Chunk size of attachments in bytes.
Default prefix to use when looking up project configs in Redis. This is only done when Relay is in processing mode.
Maximum rate limit to report to clients in seconds.
Returns configuration for the metrics aggregator.
-Return the statically configured Relays.
+Return the statically configured Relays.
Returns true
if unknown items should be accepted and forwarded.
Returns the host and port of the AWS lambda runtime API.
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,
}
The relay credentials
-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.
+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.
source
. Read moreThen 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 @@pub struct RelayInfo {
- pub public_key: PublicKey,
+ pub public_key: PublicKey,
pub internal: bool,
}
Information on a downstream Relay.
-public_key: PublicKey
The public key that this Relay uses to authenticate and sign requests.
+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.
-Creates a new RelayInfo
+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
.
{
"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
sourcepub 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 Struct relay_dynamic_config::MetricSpec
source · 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 Struct relay_dynamic_config::ProjectConfig
source · 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 Function relay_filter::transaction_name::should_filter
source · 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 Module relay_filter::transaction_name
source · 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
- Filters Transaction events based on a list of provided transaction
+
Functions
- Filters Transaction events based on a list of provided transaction
name globs.
\ 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 Enum relay_metrics::DurationUnit
pub enum DurationUnit {
+DurationUnit in relay_metrics - Rust Enum relay_metrics::DurationUnit
source · pub enum DurationUnit {
NanoSecond,
MicroSecond,
MilliSecond,
@@ -17,12 +17,12 @@
§Hour
Hour ("hour"
), 3600 seconds.
§Day
Day ("day"
), 86,400 seconds.
§Week
Week ("week"
), 604,800 seconds.
-
Trait Implementations§
§impl Clone for DurationUnit
§fn clone(&self) -> DurationUnit
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for DurationUnit
§impl Default for DurationUnit
§fn default() -> DurationUnit
Returns the “default value” for a type. Read more§impl Display for DurationUnit
Trait Implementations§
source§impl Clone for DurationUnit
source§fn clone(&self) -> DurationUnit
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DurationUnit
source§impl Default for DurationUnit
source§fn default() -> DurationUnit
Returns the “default value” for a type. Read moresource§impl Display for DurationUnit
source§impl Hash for DurationUnit
§impl PartialEq<DurationUnit> for DurationUnit
§fn eq(&self, other: &DurationUnit) -> bool
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 ==
.§impl Copy for DurationUnit
§impl Eq for DurationUnit
§impl StructuralEq for DurationUnit
§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 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§
§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 Enum relay_metrics::FractionUnit
pub enum FractionUnit {
+FractionUnit in relay_metrics - Rust Enum relay_metrics::FractionUnit
source · 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 more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for FractionUnit
§impl Default for FractionUnit
§fn default() -> FractionUnit
Returns the “default value” for a type. Read more§impl Display for FractionUnit
Trait Implementations§
source§impl Clone for FractionUnit
source§fn clone(&self) -> FractionUnit
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for FractionUnit
source§impl Default for FractionUnit
source§fn default() -> FractionUnit
Returns the “default value” for a type. Read moresource§impl Display for FractionUnit
source§impl Hash for FractionUnit
§impl PartialEq<FractionUnit> for FractionUnit
§fn eq(&self, other: &FractionUnit) -> bool
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 ==
.§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 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§
§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 Enum relay_metrics::InformationUnit
pub enum InformationUnit {
+InformationUnit in relay_metrics - Rust Enum relay_metrics::InformationUnit
source · pub enum InformationUnit {
Show 14 variants
Bit,
Byte,
KiloByte,
@@ -31,12 +31,12 @@
§PebiByte
Pebibyte ("pebibyte"
), 2^50 bytes.
§ExaByte
Exabyte ("exabyte"
), 10^18 bytes.
§ExbiByte
Exbibyte ("exbibyte"
), 2^60 bytes.
-
Trait Implementations§
§impl Clone for InformationUnit
§fn clone(&self) -> InformationUnit
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for InformationUnit
§impl Default for InformationUnit
§fn default() -> InformationUnit
Returns the “default value” for a type. Read more§impl Display for InformationUnit
Trait Implementations§
source§impl Clone for InformationUnit
source§fn clone(&self) -> InformationUnit
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for InformationUnit
source§impl Default for InformationUnit
source§fn default() -> InformationUnit
Returns the “default value” for a type. Read moresource§impl Display for InformationUnit
source§impl Hash for InformationUnit
§impl PartialEq<InformationUnit> for InformationUnit
§fn eq(&self, other: &InformationUnit) -> bool
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 ==
.§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 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§
§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 Enum relay_metrics::MetricUnit
pub enum MetricUnit {
+MetricUnit in relay_metrics - Rust Enum relay_metrics::MetricUnit
source · pub enum MetricUnit {
Duration(DurationUnit),
Information(InformationUnit),
Fraction(FractionUnit),
@@ -14,20 +14,20 @@
§Fraction(FractionUnit)
Fractions such as percentages, defaulting to "ratio"
.
§Custom(CustomUnit)
user-defined units without builtin conversion or default.
§None
Untyped value without a unit (""
).
-
Implementations§
§impl MetricUnit
Trait Implementations§
§impl Clone for MetricUnit
§fn clone(&self) -> MetricUnit
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for MetricUnit
§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§
Trait Implementations§
source§impl Clone for MetricUnit
source§fn clone(&self) -> MetricUnit
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for MetricUnit
source§impl Default for MetricUnit
source§fn default() -> MetricUnit
Returns the “default value” for a type. Read moresource§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
§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 moresource§impl Display for MetricUnit
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 moresource§impl Hash for MetricUnit
§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
source§impl JsonSchema for MetricUnit
source§fn schema_name() -> String
The name of the generated JSON Schema. Read moresource§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 moresource§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 ==
.§impl Serialize for MetricUnit
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§
§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 Function relay_metrics::is_valid_metric_name
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 Function relay_metrics::is_valid_metric_name
source · 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
sourcepub fn new(
config: AggregatorConfig,
@@ -29,24 +29,24 @@ Flushing
the given config
.
sourcepub 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.
sourcepub 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.
sourcepub 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.
-sourcepub 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.
+sourcepub 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§impl Drop for AggregatorService
source§impl Service for AggregatorService
§type Interface = Aggregator
The interface of messages this service implements. Read moresource§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.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> 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 Struct relay_metrics::CustomUnit
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 Struct relay_metrics::CustomUnit
source · pub struct CustomUnit(_);
Expand description
Custom user-defined units without builtin conversion.
+Implementations§
source§impl CustomUnit
sourcepub fn parse(s: &str) -> Result<CustomUnit, ParseMetricUnitError>
Parses a CustomUnit
from a string.
+Methods from Deref<Target = str>§
Trait Implementations§
§impl Clone for CustomUnit
§fn clone(&self) -> CustomUnit
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for CustomUnit
§impl Deref for CustomUnit
§impl Display for CustomUnit
§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 moreTrait Implementations§
source§impl Clone for CustomUnit
source§fn clone(&self) -> CustomUnit
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CustomUnit
source§impl Deref for CustomUnit
source§impl Display for CustomUnit
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 moresource§impl Hash for CustomUnit
§impl PartialEq<CustomUnit> for CustomUnit
§fn eq(&self, other: &CustomUnit) -> bool
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 ==
.§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 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§
§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 Struct relay_metrics::FlushBuckets
source · 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 more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for FlushBuckets
§impl Send for FlushBuckets
§impl Sync for FlushBuckets
§impl Unpin for FlushBuckets
§impl UnwindSafe for FlushBuckets
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 Struct relay_metrics::InsertMetrics
source · pub struct InsertMetrics { /* private fields */ }
Expand description
A message containing a list of Metric
s to be inserted into the aggregator.
-Implementations§
source§impl InsertMetrics
Implementations§
source§impl InsertMetrics
sourcepub fn new<I>(project_key: ProjectKey, metrics: I) -> Selfwhere
I: IntoIterator<Item = Metric>,
Creates a new message containing a list of Metric
s.
-sourcepub fn project_key(&self) -> ProjectKey
Returns the ProjectKey
for the the current InsertMetrics
message.
+sourcepub fn project_key(&self) -> ProjectKey
Returns the ProjectKey
for the the current InsertMetrics
message.
Trait Implementations§
source§impl Debug for InsertMetrics
source§impl FromMessage<InsertMetrics> for Aggregator
source§fn from_message(message: InsertMetrics, _: ()) -> Self
Converts the message into the service interface.Auto Trait Implementations§
§impl RefUnwindSafe for InsertMetrics
§impl Send for InsertMetrics
§impl Sync for InsertMetrics
§impl Unpin for InsertMetrics
§impl UnwindSafe for InsertMetrics
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 Struct relay_metrics::MergeBuckets
source · pub struct MergeBuckets { /* private fields */ }
Expand description
A message containing a list of Bucket
s to be inserted into the aggregator.
-Implementations§
source§impl MergeBuckets
sourcepub fn new(project_key: ProjectKey, buckets: Vec<Bucket>) -> Self
Creates a new message containing a list of Bucket
s.
-sourcepub fn project_key(&self) -> ProjectKey
Returns the ProjectKey
for the the current MergeBuckets
message.
+Implementations§
source§impl MergeBuckets
sourcepub fn new(project_key: ProjectKey, buckets: Vec<Bucket>) -> Self
Creates a new message containing a list of Bucket
s.
+sourcepub fn project_key(&self) -> ProjectKey
Returns the ProjectKey
for the the current MergeBuckets
message.
Trait Implementations§
source§impl Debug for MergeBuckets
source§impl FromMessage<MergeBuckets> for Aggregator
source§fn from_message(message: MergeBuckets, _: ()) -> Self
Converts the message into the service interface.Auto Trait Implementations§
§impl RefUnwindSafe for MergeBuckets
§impl Send for MergeBuckets
§impl Sync for MergeBuckets
§impl Unpin for MergeBuckets
§impl UnwindSafe for MergeBuckets
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 Struct relay_metrics::ParseMetricUnitError
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 more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for ParseMetricUnitError
§impl Copy for ParseMetricUnitError
Auto Trait Implementations§
§impl RefUnwindSafe for ParseMetricUnitError
§impl Send for ParseMetricUnitError
§impl Sync for ParseMetricUnitError
§impl Unpin for ParseMetricUnitError
§impl UnwindSafe for ParseMetricUnitError
Blanket Implementations§
source§impl<T> Any for Twhere
+ParseMetricUnitError in relay_metrics - Rust Struct relay_metrics::ParseMetricUnitError
source · 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 more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ParseMetricUnitError
source§impl Copy for ParseMetricUnitError
Auto Trait Implementations§
§impl RefUnwindSafe for ParseMetricUnitError
§impl Send for ParseMetricUnitError
§impl Sync for ParseMetricUnitError
§impl Unpin for ParseMetricUnitError
§impl UnwindSafe for ParseMetricUnitError
Blanket Implementations§
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 Struct relay_metrics::UnixTimestamp
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 Struct relay_metrics::UnixTimestamp
source · pub struct UnixTimestamp(_);
Expand description
A unix timestamp (full seconds elapsed since 1970-01-01 00:00 UTC).
+Implementations§
source§impl UnixTimestamp
sourcepub fn from_secs(secs: u64) -> UnixTimestamp
Creates a unix timestamp from the given number of seconds.
+sourcepub fn from_system(time: SystemTime) -> UnixTimestamp
Creates a unix timestamp from the given system time.
+sourcepub 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.
+sourcepub 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_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
].
+sourcepub fn now() -> UnixTimestamp
Returns the current timestamp.
+sourcepub fn as_datetime(self) -> Option<DateTime<Utc>>
Returns the timestamp as chrono datetime.
+sourcepub 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 more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for UnixTimestamp
§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 more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UnixTimestamp
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
§impl FromStr for UnixTimestamp
§impl Hash for UnixTimestamp
§fn hash<__H>(&self, state: &mut __H)where
+ D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for UnixTimestamp
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 moresource§impl Hash for UnixTimestamp
§impl Ord for UnixTimestamp
source§impl Ord for UnixTimestamp
source§fn cmp(&self, other: &UnixTimestamp) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. 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 moresource§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 ==
.§impl PartialOrd<UnixTimestamp> for UnixTimestamp
§fn partial_cmp(&self, other: &UnixTimestamp) -> Option<Ordering>
source§impl PartialOrd<UnixTimestamp> for UnixTimestamp
source§fn partial_cmp(&self, other: &UnixTimestamp) -> Option<Ordering>
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 moresource§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
source§impl Sub<UnixTimestamp> for UnixTimestamp
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§
§impl RefUnwindSafe for UnixTimestamp
§impl Send for UnixTimestamp
§impl Sync for UnixTimestamp
§impl Unpin for UnixTimestamp
§impl UnwindSafe for UnixTimestamp
Blanket Implementations§
source§impl<T> Any for Twhere
+) -> <UnixTimestamp as Sub<UnixTimestamp>>::Output
Performs the -
operation. Read moresource§impl Copy for UnixTimestamp
source§impl Eq for UnixTimestamp
source§impl StructuralEq for UnixTimestamp
source§impl StructuralPartialEq for UnixTimestamp
Auto Trait Implementations§
§impl RefUnwindSafe for UnixTimestamp
§impl Send for UnixTimestamp
§impl Sync for UnixTimestamp
§impl Unpin for UnixTimestamp
§impl UnwindSafe for UnixTimestamp
Blanket Implementations§
§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 Enum relay_quotas::DataCategory
pub enum DataCategory {
+DataCategory in relay_quotas - Rust Enum relay_quotas::DataCategory
source · 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 is_error(self) -> bool
Returns true if the DataCategory refers to an error (i.e an error event).
-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
sourcepub fn from_name(string: &str) -> DataCategory
Returns the data category corresponding to the given name.
+sourcepub fn is_error(self) -> bool
Returns true if the DataCategory refers to an error (i.e an error event).
+sourcepub 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 more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more§impl Debug for DataCategory
§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 more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for DataCategory
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
§impl From<EventType> for DataCategory
§fn from(ty: EventType) -> DataCategory
Converts to this type from the input type.§impl FromStr for DataCategory
source§impl Display for DataCategory
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
§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 moresource§impl Hash for DataCategory
§impl Ord for DataCategory
source§impl Ord for DataCategory
source§fn cmp(&self, other: &DataCategory) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. 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 moresource§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 ==
.§impl PartialOrd<DataCategory> for DataCategory
§fn partial_cmp(&self, other: &DataCategory) -> Option<Ordering>
source§impl PartialOrd<DataCategory> for DataCategory
source§fn partial_cmp(&self, other: &DataCategory) -> Option<Ordering>
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 moresource§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§
§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 Enum relay_quotas::RateLimitScope
source · 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§
Trait Implementations§
source§impl Clone for RateLimitScope
source§fn clone(&self) -> RateLimitScope
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for RateLimitScope
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 Enum relay_quotas::RateLimitingError
source · 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§impl Display for RateLimitingError
source§impl Error for RateLimitingError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl !RefUnwindSafe for RateLimitingError
§impl Send for RateLimitingError
§impl Sync for RateLimitingError
§impl Unpin for RateLimitingError
§impl !UnwindSafe for RateLimitingError
Blanket Implementations§
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
Implementations§
source§impl RedisRateLimiter
sourcepub 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
sourcepub 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 Struct relay_sampling::DynamicSamplingContext
source · 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
sourcepub fn from_transaction(public_key: ProjectKey, event: &Event) -> Option<Self>
Computes a dynamic sampling context from a transaction event.
+Implementations§
source§impl DynamicSamplingContext
sourcepub 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",