pub struct PrometheusRecorder { /* private fields */ }Expand description
A Prometheus recorder.
This recorder should be composed with other recorders or installed globally via
metrics::set_boxed_recorder.
Most users will not need to interact directly with the recorder, and can simply deal with the
builder methods on PrometheusBuilder for building and installing
the recorder/exporter.
Implementations§
source§impl PrometheusRecorder
 
impl PrometheusRecorder
sourcepub fn handle(&self) -> PrometheusHandle
 
pub fn handle(&self) -> PrometheusHandle
Gets a PrometheusHandle to this recorder.
Trait Implementations§
source§impl Recorder for PrometheusRecorder
 
impl Recorder for PrometheusRecorder
source§fn describe_counter(
    &self,
    key_name: KeyName,
    _unit: Option<Unit>,
    description: &'static str
)
 
fn describe_counter( &self, key_name: KeyName, _unit: Option<Unit>, description: &'static str )
Describes a counter. Read more
source§fn describe_gauge(
    &self,
    key_name: KeyName,
    _unit: Option<Unit>,
    description: &'static str
)
 
fn describe_gauge( &self, key_name: KeyName, _unit: Option<Unit>, description: &'static str )
Describes a gauge. Read more
source§fn describe_histogram(
    &self,
    key_name: KeyName,
    _unit: Option<Unit>,
    description: &'static str
)
 
fn describe_histogram( &self, key_name: KeyName, _unit: Option<Unit>, description: &'static str )
Describes a histogram. Read more
source§fn register_counter(&self, key: &Key) -> Counter
 
fn register_counter(&self, key: &Key) -> Counter
Registers a counter.
source§fn register_gauge(&self, key: &Key) -> Gauge
 
fn register_gauge(&self, key: &Key) -> Gauge
Registers a gauge.
source§fn register_histogram(&self, key: &Key) -> Histogram
 
fn register_histogram(&self, key: &Key) -> Histogram
Registers a histogram.
Auto Trait Implementations§
impl !RefUnwindSafe for PrometheusRecorder
impl Send for PrometheusRecorder
impl Sync for PrometheusRecorder
impl Unpin for PrometheusRecorder
impl !UnwindSafe for PrometheusRecorder
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