#[non_exhaustive]pub struct Gauge<T>(/* private fields */);Available on crate feature
opentelemetry only.Expand description
An instrument that records independent values
Gauge can be cloned to create multiple handles to the same instrument. If a Gauge needs to be shared,
users are recommended to clone the Gauge instead of creating duplicate Gauges for the same metric. Creating
duplicate Gauges for the same metric could lower SDK performance.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Gauge<T>
impl<T> !RefUnwindSafe for Gauge<T>
impl<T> Send for Gauge<T>
impl<T> Sync for Gauge<T>
impl<T> Unpin for Gauge<T>
impl<T> !UnwindSafe for Gauge<T>
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