pub struct MetricsCollector { /* private fields */ }
Expand description
This module provides compatibility with the metrics
crate.
It registers as a Collector
with the prometheus_client
crate
and implements the Recorder
trait of the metrics
crate.
Trait Implementations§
Source§impl Clone for MetricsCollector
impl Clone for MetricsCollector
Source§impl Collector for MetricsCollector
impl Collector for MetricsCollector
Source§impl Debug for MetricsCollector
impl Debug for MetricsCollector
Source§impl Default for MetricsCollector
impl Default for MetricsCollector
Source§fn default() -> MetricsCollector
fn default() -> MetricsCollector
Returns the “default value” for a type. Read more
Source§impl Recorder for MetricsCollector
impl Recorder for MetricsCollector
Source§fn describe_counter(
&self,
key: KeyName,
unit: Option<Unit>,
description: SharedString,
)
fn describe_counter( &self, key: KeyName, unit: Option<Unit>, description: SharedString, )
Describes a counter. Read more
Source§fn describe_gauge(
&self,
key: KeyName,
unit: Option<Unit>,
description: SharedString,
)
fn describe_gauge( &self, key: KeyName, unit: Option<Unit>, description: SharedString, )
Describes a gauge. Read more
Source§fn describe_histogram(
&self,
key: KeyName,
unit: Option<Unit>,
description: SharedString,
)
fn describe_histogram( &self, key: KeyName, unit: Option<Unit>, description: SharedString, )
Describes a histogram. Read more
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