pub struct DefaultMetrics;
Expand description
Standard implementation of Metrics
using
[foundations::telemetry::metrics
].
Trait Implementations§
Source§impl Clone for DefaultMetrics
impl Clone for DefaultMetrics
Source§fn clone(&self) -> DefaultMetrics
fn clone(&self) -> DefaultMetrics
Returns a copy 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 Default for DefaultMetrics
impl Default for DefaultMetrics
Source§fn default() -> DefaultMetrics
fn default() -> DefaultMetrics
Returns the “default value” for a type. Read more
Source§impl Metrics for DefaultMetrics
impl Metrics for DefaultMetrics
Source§fn tokio_runtime_task_schedule_delay_histogram(
&self,
task: &Arc<str>,
) -> TimeHistogram
fn tokio_runtime_task_schedule_delay_histogram( &self, task: &Arc<str>, ) -> TimeHistogram
Histogram of task schedule delays
Source§fn tokio_runtime_task_poll_duration_histogram(
&self,
task: &Arc<str>,
) -> TimeHistogram
fn tokio_runtime_task_poll_duration_histogram( &self, task: &Arc<str>, ) -> TimeHistogram
Histogram of task poll durations
Source§fn tokio_runtime_task_total_poll_time_micros(&self, task: &Arc<str>) -> Counter
fn tokio_runtime_task_total_poll_time_micros(&self, task: &Arc<str>) -> Counter
Helps us get a rough idea of if our waker is causing issues.
Source§fn connections_in_memory(&self) -> Gauge
fn connections_in_memory(&self) -> Gauge
Number of QUIC connections currently in memory
Source§fn maximum_writable_streams(&self) -> Histogram
fn maximum_writable_streams(&self) -> Histogram
Maximum number of writable QUIC streams in a connection
Source§fn handshake_time_seconds(&self, stage: QuicHandshakeStage) -> TimeHistogram
fn handshake_time_seconds(&self, stage: QuicHandshakeStage) -> TimeHistogram
Overhead of QUIC handshake processing stage
Source§fn write_errors(&self, reason: QuicWriteError) -> Counter
fn write_errors(&self, reason: QuicWriteError) -> Counter
Number of error and partial writes while sending QUIC packets
Source§fn invalid_cid_packet_count(&self, reason: BoxError) -> Counter
fn invalid_cid_packet_count(&self, reason: BoxError) -> Counter
Number of QUIC packets received where the CID could not be verified.
Source§fn accepted_initial_packet_count(&self) -> Counter
fn accepted_initial_packet_count(&self) -> Counter
Number of accepted QUIC Initial packets
Source§fn expensive_accepted_initial_packet_count(&self, peer_ip: IpAddr) -> Counter
fn expensive_accepted_initial_packet_count(&self, peer_ip: IpAddr) -> Counter
Number of accepted QUIC Initial packets using expensive label(s)
Source§fn rejected_initial_packet_count(
&self,
reason: QuicInvalidInitialPacketError,
) -> Counter
fn rejected_initial_packet_count( &self, reason: QuicInvalidInitialPacketError, ) -> Counter
Number of QUIC packets received but not associated with an active
connection
Source§fn expensive_rejected_initial_packet_count(
&self,
reason: QuicInvalidInitialPacketError,
peer_ip: IpAddr,
) -> Counter
fn expensive_rejected_initial_packet_count( &self, reason: QuicInvalidInitialPacketError, peer_ip: IpAddr, ) -> Counter
Number of QUIC packets received but not associated with an active
connection using expensive label(s)
Source§fn utilized_bandwidth(&self) -> Gauge
fn utilized_bandwidth(&self) -> Gauge
Combined utilized bandwidth of all open connections (max over the past
two minutes)
Source§fn max_bandwidth_mbps(&self) -> Histogram
fn max_bandwidth_mbps(&self) -> Histogram
The highest utilized bandwidh reported during the lifetime of the
connection
Source§fn max_loss_pct(&self) -> Histogram
fn max_loss_pct(&self) -> Histogram
The highest momentary loss reported during the lifetime of the
connection
Source§fn udp_drop_count(&self) -> Counter
fn udp_drop_count(&self) -> Counter
Number of UDP packets dropped when receiving
Source§fn failed_handshakes(&self, reason: HandshakeError) -> Counter
fn failed_handshakes(&self, reason: HandshakeError) -> Counter
Number of failed quic handshakes
Source§fn local_h3_conn_close_error_count(&self, reason: H3Error) -> Counter
fn local_h3_conn_close_error_count(&self, reason: H3Error) -> Counter
Number of HTTP/3 connection closures generated locally
Source§fn local_quic_conn_close_error_count(&self, reason: QuicError) -> Counter
fn local_quic_conn_close_error_count(&self, reason: QuicError) -> Counter
Number of QUIC connection closures generated locally
Source§fn peer_h3_conn_close_error_count(&self, reason: H3Error) -> Counter
fn peer_h3_conn_close_error_count(&self, reason: H3Error) -> Counter
Number of HTTP/3 connection closures generated by peer
Source§fn peer_quic_conn_close_error_count(&self, reason: QuicError) -> Counter
fn peer_quic_conn_close_error_count(&self, reason: QuicError) -> Counter
Number of QUIC connection closures generated by peer
Auto Trait Implementations§
impl Freeze for DefaultMetrics
impl RefUnwindSafe for DefaultMetrics
impl Send for DefaultMetrics
impl Sync for DefaultMetrics
impl Unpin for DefaultMetrics
impl UnwindSafe for DefaultMetrics
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more