pub struct AtomicObservableUpDownCounterI64(/* private fields */);
Expand description
Observable up down counter based on std::sync::atomic::AtomicI64.
Implementations§
source§impl AtomicObservableUpDownCounterI64
impl AtomicObservableUpDownCounterI64
sourcepub fn new(
meter: &Meter,
name: impl Into<Cow<'static, str>>,
initial_value: i64,
) -> AtomicObservableInstrumentBuilder<'_, AtomicObservableUpDownCounterI64, ObservableUpDownCounter<i64>, i64>
pub fn new( meter: &Meter, name: impl Into<Cow<'static, str>>, initial_value: i64, ) -> AtomicObservableInstrumentBuilder<'_, AtomicObservableUpDownCounterI64, ObservableUpDownCounter<i64>, i64>
Construct a new AtomicObservableUpDownCounterI64, 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 AtomicObservableUpDownCounterI64
impl Clone for AtomicObservableUpDownCounterI64
source§fn clone(&self) -> AtomicObservableUpDownCounterI64
fn clone(&self) -> AtomicObservableUpDownCounterI64
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 AtomicObservableUpDownCounterI64
impl !RefUnwindSafe for AtomicObservableUpDownCounterI64
impl Send for AtomicObservableUpDownCounterI64
impl Sync for AtomicObservableUpDownCounterI64
impl Unpin for AtomicObservableUpDownCounterI64
impl !UnwindSafe for AtomicObservableUpDownCounterI64
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