pub struct PrometheusRecorder { /* private fields */ }
Expand description
A Prometheus 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: SharedString
)
fn describe_counter( &self, key_name: KeyName, _unit: Option<Unit>, description: SharedString )
Describes a counter. Read more
source§fn describe_gauge(
&self,
key_name: KeyName,
_unit: Option<Unit>,
description: SharedString
)
fn describe_gauge( &self, key_name: KeyName, _unit: Option<Unit>, description: SharedString )
Describes a gauge. Read more
source§fn describe_histogram(
&self,
key_name: KeyName,
_unit: Option<Unit>,
description: SharedString
)
fn describe_histogram( &self, key_name: KeyName, _unit: Option<Unit>, description: SharedString )
Describes a histogram. Read more
Auto Trait Implementations§
impl Freeze for PrometheusRecorder
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