Trait influxive_otel_atomic_obs::MeterExt

source ·
pub trait MeterExt {
    // Required methods
    fn f64_observable_counter_atomic(
        &self,
        name: impl Into<Cow<'static, str>>,
        initial_value: f64,
    ) -> AtomicObservableInstrumentBuilder<'_, AtomicObservableCounterF64, ObservableCounter<f64>, f64>;
    fn f64_observable_gauge_atomic(
        &self,
        name: impl Into<Cow<'static, str>>,
        initial_value: f64,
    ) -> AtomicObservableInstrumentBuilder<'_, AtomicObservableGaugeF64, ObservableGauge<f64>, f64>;
    fn f64_observable_up_down_counter_atomic(
        &self,
        name: impl Into<Cow<'static, str>>,
        initial_value: f64,
    ) -> AtomicObservableInstrumentBuilder<'_, AtomicObservableUpDownCounterF64, ObservableUpDownCounter<f64>, f64>;
    fn i64_observable_gauge_atomic(
        &self,
        name: impl Into<Cow<'static, str>>,
        initial_value: i64,
    ) -> AtomicObservableInstrumentBuilder<'_, AtomicObservableGaugeI64, ObservableGauge<i64>, i64>;
    fn i64_observable_up_down_counter_atomic(
        &self,
        name: impl Into<Cow<'static, str>>,
        initial_value: i64,
    ) -> AtomicObservableInstrumentBuilder<'_, AtomicObservableUpDownCounterI64, ObservableUpDownCounter<i64>, i64>;
    fn u64_observable_counter_atomic(
        &self,
        name: impl Into<Cow<'static, str>>,
        initial_value: u64,
    ) -> AtomicObservableInstrumentBuilder<'_, AtomicObservableCounterU64, ObservableCounter<u64>, u64>;
    fn u64_observable_gauge_atomic(
        &self,
        name: impl Into<Cow<'static, str>>,
        initial_value: u64,
    ) -> AtomicObservableInstrumentBuilder<'_, AtomicObservableGaugeU64, ObservableGauge<u64>, u64>;
}
Expand description

Extension trait for Meter

Required Methods§

source

fn f64_observable_counter_atomic( &self, name: impl Into<Cow<'static, str>>, initial_value: f64, ) -> AtomicObservableInstrumentBuilder<'_, AtomicObservableCounterF64, ObservableCounter<f64>, f64>

Get an observable f64 up down counter backed by a std::atomic::AtomicU64.

source

fn f64_observable_gauge_atomic( &self, name: impl Into<Cow<'static, str>>, initial_value: f64, ) -> AtomicObservableInstrumentBuilder<'_, AtomicObservableGaugeF64, ObservableGauge<f64>, f64>

Get an observable f64 gauge backed by a std::atomic::AtomicU64.

source

fn f64_observable_up_down_counter_atomic( &self, name: impl Into<Cow<'static, str>>, initial_value: f64, ) -> AtomicObservableInstrumentBuilder<'_, AtomicObservableUpDownCounterF64, ObservableUpDownCounter<f64>, f64>

Get an observable f64 up down counter backed by a std::atomic::AtomicU64.

source

fn i64_observable_gauge_atomic( &self, name: impl Into<Cow<'static, str>>, initial_value: i64, ) -> AtomicObservableInstrumentBuilder<'_, AtomicObservableGaugeI64, ObservableGauge<i64>, i64>

Get an observable i64 gauge backed by a std::atomic::AtomicI64.

source

fn i64_observable_up_down_counter_atomic( &self, name: impl Into<Cow<'static, str>>, initial_value: i64, ) -> AtomicObservableInstrumentBuilder<'_, AtomicObservableUpDownCounterI64, ObservableUpDownCounter<i64>, i64>

Get an observable i64 up down counter backed by a std::atomic::AtomicI64.

source

fn u64_observable_counter_atomic( &self, name: impl Into<Cow<'static, str>>, initial_value: u64, ) -> AtomicObservableInstrumentBuilder<'_, AtomicObservableCounterU64, ObservableCounter<u64>, u64>

Get an observable u64 counter backed by a std::atomic::AtomicU64.

source

fn u64_observable_gauge_atomic( &self, name: impl Into<Cow<'static, str>>, initial_value: u64, ) -> AtomicObservableInstrumentBuilder<'_, AtomicObservableGaugeU64, ObservableGauge<u64>, u64>

Get an observable u64 gauge backed by a std::atomic::AtomicU64.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl MeterExt for Meter

Implementors§