pub struct MetricAttributes {}Expand description
Attributes recorded with a metric measurement.
Build a set once and reuse it for repeated measurements: recording hands the prepared
attributes to the metrics backend without converting them again. Without the otel-metrics
feature metrics are not recorded, so added attributes are discarded.
Implementations§
Trait Implementations§
Source§impl Clone for MetricAttributes
impl Clone for MetricAttributes
Source§impl Debug for MetricAttributes
impl Debug for MetricAttributes
Source§impl Default for MetricAttributes
impl Default for MetricAttributes
Source§impl PartialEq for MetricAttributes
impl PartialEq for MetricAttributes
impl StructuralPartialEq for MetricAttributes
Auto Trait Implementations§
impl Freeze for MetricAttributes
impl RefUnwindSafe for MetricAttributes
impl Send for MetricAttributes
impl Sync for MetricAttributes
impl Unpin for MetricAttributes
impl UnsafeUnpin for MetricAttributes
impl UnwindSafe for MetricAttributes
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