Struct metrics::NoopRecorder [−][src]
pub struct NoopRecorder;
Expand description
A no-op recorder.
Used as the default recorder when one has not been installed yet. Useful for acting as the root recorder when testing layers.
Trait Implementations
impl Recorder for NoopRecorder
[src]
impl Recorder for NoopRecorder
[src]fn register_counter(
&self,
_key: &Key,
_unit: Option<Unit>,
_description: Option<&'static str>
)
[src]
fn register_counter(
&self,
_key: &Key,
_unit: Option<Unit>,
_description: Option<&'static str>
)
[src]Registers a counter. Read more
fn register_gauge(
&self,
_key: &Key,
_unit: Option<Unit>,
_description: Option<&'static str>
)
[src]
fn register_gauge(
&self,
_key: &Key,
_unit: Option<Unit>,
_description: Option<&'static str>
)
[src]Registers a gauge. Read more
fn register_histogram(
&self,
_key: &Key,
_unit: Option<Unit>,
_description: Option<&'static str>
)
[src]
fn register_histogram(
&self,
_key: &Key,
_unit: Option<Unit>,
_description: Option<&'static str>
)
[src]Registers a histogram. Read more
fn increment_counter(&self, _key: &Key, _value: u64)
[src]
fn increment_counter(&self, _key: &Key, _value: u64)
[src]Increments a counter.
fn update_gauge(&self, _key: &Key, _value: GaugeValue)
[src]
fn update_gauge(&self, _key: &Key, _value: GaugeValue)
[src]Updates a gauge.
fn record_histogram(&self, _key: &Key, _value: f64)
[src]
fn record_histogram(&self, _key: &Key, _value: f64)
[src]Records a histogram.