Struct metrics_util::layers::Filter
source · pub struct Filter<R> { /* private fields */ }
Expand description
Filters and discards metrics matching certain name patterns.
More information on the behavior of the layer can be found in FilterLayer
.
Trait Implementations§
source§impl<R: Recorder> Recorder for Filter<R>
impl<R: Recorder> Recorder for Filter<R>
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<R> Freeze for Filter<R>where
R: Freeze,
impl<R> RefUnwindSafe for Filter<R>where
R: RefUnwindSafe,
impl<R> Send for Filter<R>where
R: Send,
impl<R> Sync for Filter<R>where
R: Sync,
impl<R> Unpin for Filter<R>where
R: Unpin,
impl<R> UnwindSafe for Filter<R>where
R: UnwindSafe,
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