pub struct NoopMetrics;Expand description
Metrics recorder that ignores every event.
Implementations§
Source§impl NoopMetrics
impl NoopMetrics
Sourcepub fn arc() -> SharedMetricsRecorder
pub fn arc() -> SharedMetricsRecorder
Creates a shared noop recorder.
Trait Implementations§
Source§impl DbMetricsRecorder for NoopMetrics
impl DbMetricsRecorder for NoopMetrics
Source§fn record_db_query(&self, _metric: &DbQueryMetric)
fn record_db_query(&self, _metric: &DbQueryMetric)
Records one database query metric.
Source§impl Debug for NoopMetrics
impl Debug for NoopMetrics
Source§impl Default for NoopMetrics
impl Default for NoopMetrics
Source§fn default() -> NoopMetrics
fn default() -> NoopMetrics
Returns the “default value” for a type. Read more
Source§impl MetricsRecorder for NoopMetrics
impl MetricsRecorder for NoopMetrics
Source§fn record_http_request(
&self,
method: &str,
route: &str,
status: u16,
duration_seconds: f64,
)
fn record_http_request( &self, method: &str, route: &str, status: u16, duration_seconds: f64, )
Records an HTTP request. Read more
Source§fn record_auth_event(
&self,
action: &'static str,
status: &'static str,
reason: &'static str,
)
fn record_auth_event( &self, action: &'static str, status: &'static str, reason: &'static str, )
Records an authentication event.
Source§fn record_application_event(
&self,
category: &'static str,
event: &'static str,
status: &'static str,
)
fn record_application_event( &self, category: &'static str, event: &'static str, status: &'static str, )
Records a generic application event.
Source§fn record_config_reload(
&self,
source: &'static str,
decision: &'static str,
status: &'static str,
changed_keys: u64,
duration_seconds: f64,
)
fn record_config_reload( &self, source: &'static str, decision: &'static str, status: &'static str, changed_keys: u64, duration_seconds: f64, )
Records a runtime configuration reload attempt.
Source§fn record_config_mutation(
&self,
source: &'static str,
operation: &'static str,
status: &'static str,
changed_keys: u64,
)
fn record_config_mutation( &self, source: &'static str, operation: &'static str, status: &'static str, changed_keys: u64, )
Records a runtime configuration mutation.
Source§fn record_background_task_transition(
&self,
kind: &'static str,
status: &'static str,
)
fn record_background_task_transition( &self, kind: &'static str, status: &'static str, )
Records a background task state transition.
Source§fn set_background_tasks_pending(&self, pending: u64)
fn set_background_tasks_pending(&self, pending: u64)
Sets the number of pending background tasks.
Auto Trait Implementations§
impl Freeze for NoopMetrics
impl RefUnwindSafe for NoopMetrics
impl Send for NoopMetrics
impl Sync for NoopMetrics
impl Unpin for NoopMetrics
impl UnsafeUnpin for NoopMetrics
impl UnwindSafe for NoopMetrics
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