pub struct MetricsCollector { /* private fields */ }
Expand description
Metrics collector for performance tracking
Implementations§
Source§impl MetricsCollector
impl MetricsCollector
Sourcepub fn record_event(&self, event: &LogEvent)
pub fn record_event(&self, event: &LogEvent)
Record a log event for metrics
Sourcepub fn summary(&self) -> MetricsSummary
pub fn summary(&self) -> MetricsSummary
Get a summary of collected metrics
Trait Implementations§
Source§impl Debug for MetricsCollector
impl Debug for MetricsCollector
Auto Trait Implementations§
impl Freeze for MetricsCollector
impl RefUnwindSafe for MetricsCollector
impl Send for MetricsCollector
impl Sync for MetricsCollector
impl Unpin for MetricsCollector
impl UnwindSafe for MetricsCollector
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