Enum swanling::metrics::SwanlingMetric [−][src]
pub enum SwanlingMetric { Request(SwanlingRequestMetric), Task(SwanlingTaskMetric), }
Expand description
Used to send metrics from SwanlingUser
threads
to the parent Swanling process.
SwanlingUser
threads send these metrics to the
Swanling parent process using an
unbounded Flume channel
.
The parent process will spend up to 80% of its time receiving and aggregating
these metrics. The parent process aggregates SwanlingRequestMetric
s into
SwanlingRequestMetricAggregate
, SwanlingTaskMetric
s into SwanlingTaskMetricAggregate
,
and SwanlingErrorMetric
s into SwanlingErrorMetricAggregate
. Aggregation happens in the
parent process so the individual SwanlingUser
threads
can spend all their time generating and validating load.
Variants
Request(SwanlingRequestMetric)
Task(SwanlingTaskMetric)
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for SwanlingMetric
impl Send for SwanlingMetric
impl Sync for SwanlingMetric
impl Unpin for SwanlingMetric
impl UnwindSafe for SwanlingMetric
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V