pub struct TelemetryMetrics {Show 15 fields
pub cache_hits: u64,
pub cache_misses: u64,
pub cache_hit_rate: f64,
pub cache_size: usize,
pub cache_capacity: usize,
pub cache_evictions: u64,
pub pool_size: usize,
pub idle_connections: usize,
pub active_connections: usize,
pub is_closed: bool,
pub db_queries_total: u64,
pub db_query_errors: u64,
pub register_single_calls: u64,
pub register_batch_calls: u64,
pub total_objects_registered: u64,
}Expand description
A snapshot of all telemetry metrics.
This struct provides a complete view of the register’s performance and is designed to work well with OpenTelemetry exporters.
Fields§
§cache_hits: u64§cache_misses: u64§cache_hit_rate: f64§cache_size: usize§cache_capacity: usize§cache_evictions: u64§pool_size: usize§idle_connections: usize§active_connections: usize§is_closed: bool§db_queries_total: u64§db_query_errors: u64§register_single_calls: u64§register_batch_calls: u64§total_objects_registered: u64Trait Implementations§
Source§impl Clone for TelemetryMetrics
impl Clone for TelemetryMetrics
Source§fn clone(&self) -> TelemetryMetrics
fn clone(&self) -> TelemetryMetrics
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 moreAuto Trait Implementations§
impl Freeze for TelemetryMetrics
impl RefUnwindSafe for TelemetryMetrics
impl Send for TelemetryMetrics
impl Sync for TelemetryMetrics
impl Unpin for TelemetryMetrics
impl UnwindSafe for TelemetryMetrics
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