pub struct MetricsSnapshot {Show 19 fields
pub messages_sent: u64,
pub messages_received: u64,
pub bytes_sent: u64,
pub bytes_received: u64,
pub send_errors: u64,
pub receive_errors: u64,
pub queue_depth: u64,
pub peak_queue_depth: u64,
pub avg_latency_us: u64,
pub min_latency_us: Option<u64>,
pub max_latency_us: u64,
pub p50_latency_us: u64,
pub p95_latency_us: u64,
pub p99_latency_us: u64,
pub elapsed_secs: f64,
pub send_throughput: f64,
pub recv_throughput: f64,
pub send_bandwidth: f64,
pub recv_bandwidth: f64,
}Expand description
A snapshot of metrics at a point in time.
Fields§
§messages_sent: u64Total messages sent
messages_received: u64Total messages received
bytes_sent: u64Total bytes sent
bytes_received: u64Total bytes received
send_errors: u64Send errors
receive_errors: u64Receive errors
queue_depth: u64Current queue depth
peak_queue_depth: u64Peak queue depth
avg_latency_us: u64Average latency in microseconds
min_latency_us: Option<u64>Minimum latency in microseconds
max_latency_us: u64Maximum latency in microseconds
p50_latency_us: u6450th percentile latency
p95_latency_us: u6495th percentile latency
p99_latency_us: u6499th percentile latency
elapsed_secs: f64Elapsed time in seconds
send_throughput: f64Send throughput (messages/second)
recv_throughput: f64Receive throughput (messages/second)
send_bandwidth: f64Send bandwidth (bytes/second)
recv_bandwidth: f64Receive bandwidth (bytes/second)
Trait Implementations§
Source§impl Clone for MetricsSnapshot
impl Clone for MetricsSnapshot
Source§fn clone(&self) -> MetricsSnapshot
fn clone(&self) -> MetricsSnapshot
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MetricsSnapshot
impl Debug for MetricsSnapshot
Source§impl<'de> Deserialize<'de> for MetricsSnapshot
impl<'de> Deserialize<'de> for MetricsSnapshot
Source§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 Freeze for MetricsSnapshot
impl RefUnwindSafe for MetricsSnapshot
impl Send for MetricsSnapshot
impl Sync for MetricsSnapshot
impl Unpin for MetricsSnapshot
impl UnsafeUnpin for MetricsSnapshot
impl UnwindSafe for MetricsSnapshot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoMetered for T
impl<T> IntoMetered for T
Source§fn metered(self, metrics: Arc<ChannelMetrics>) -> MeteredSender<Self>
fn metered(self, metrics: Arc<ChannelMetrics>) -> MeteredSender<Self>
Wrap this sender with metrics tracking.
Source§impl<T> WithMetrics for T
impl<T> WithMetrics for T
Source§fn with_metrics(self) -> MeteredWrapper<Self>
fn with_metrics(self) -> MeteredWrapper<Self>
Wrap this channel with metrics tracking.