pub struct StatsdRecorder { /* private fields */ }
Expand description
A recorder for sending the reported metrics to Statsd.
Under the hood this recorder uses StatsdClient
implementation provided by cadence
crate.
The calls to register_*
methods are pretty much ignored because statsd doesn’t have any facility
for registering metrics with descriptions. This recorder’s main responsibility is to map metrics
library’s interface/types to a supported StatsdClient
calls/types.
Trait Implementations§
Source§impl Recorder for StatsdRecorder
impl Recorder for StatsdRecorder
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 StatsdRecorder
impl RefUnwindSafe for StatsdRecorder
impl Send for StatsdRecorder
impl Sync for StatsdRecorder
impl Unpin for StatsdRecorder
impl UnwindSafe for StatsdRecorder
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