pub struct AtomicObservableCounterF64(/* private fields */);
Expand description
Observable counter based on std::sync::atomic::AtomicU64 (but storing f64 bits).
Implementations§
source§impl AtomicObservableCounterF64
impl AtomicObservableCounterF64
sourcepub fn new(
meter: &Meter,
name: impl Into<Cow<'static, str>>,
initial_value: f64,
) -> AtomicObservableInstrumentBuilder<'_, AtomicObservableCounterF64, ObservableCounter<f64>, f64>
pub fn new( meter: &Meter, name: impl Into<Cow<'static, str>>, initial_value: f64, ) -> AtomicObservableInstrumentBuilder<'_, AtomicObservableCounterF64, ObservableCounter<f64>, f64>
Construct a new AtomicObservableCounterF64, and associated opentelemetry metric. Note: If you would like any attributes applied to the metric reporting, please set them with the versioned_meter api before passing the meter into this constructor.
Trait Implementations§
source§impl Clone for AtomicObservableCounterF64
impl Clone for AtomicObservableCounterF64
source§fn clone(&self) -> AtomicObservableCounterF64
fn clone(&self) -> AtomicObservableCounterF64
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for AtomicObservableCounterF64
impl !RefUnwindSafe for AtomicObservableCounterF64
impl Send for AtomicObservableCounterF64
impl Sync for AtomicObservableCounterF64
impl Unpin for AtomicObservableCounterF64
impl !UnwindSafe for AtomicObservableCounterF64
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