Struct opentelemetry::metrics::BatchObserver
source · [−]pub struct BatchObserver<'a> { /* private fields */ }
This is supported on crate feature
metrics
only.Expand description
An Observer callback that can report observations for multiple instruments.
Implementations
pub fn u64_sum_observer<T>(&self, name: T) -> SumObserverBuilder<'_, u64> where
T: Into<String>,
pub fn u64_sum_observer<T>(&self, name: T) -> SumObserverBuilder<'_, u64> where
T: Into<String>,
Creates a new integer SumObserverBuilder
for u64
values with the given name.
pub fn f64_sum_observer<T>(&self, name: T) -> SumObserverBuilder<'_, f64> where
T: Into<String>,
pub fn f64_sum_observer<T>(&self, name: T) -> SumObserverBuilder<'_, f64> where
T: Into<String>,
Creates a new floating point SumObserverBuilder
for f64
values with the given name.
pub fn i64_up_down_sum_observer<T>(
&self,
name: T
) -> UpDownSumObserverBuilder<'_, i64> where
T: Into<String>,
pub fn i64_up_down_sum_observer<T>(
&self,
name: T
) -> UpDownSumObserverBuilder<'_, i64> where
T: Into<String>,
Creates a new integer UpDownSumObserverBuilder
for i64
values with the given name.
pub fn f64_up_down_sum_observer<T>(
&self,
name: T
) -> UpDownSumObserverBuilder<'_, f64> where
T: Into<String>,
pub fn f64_up_down_sum_observer<T>(
&self,
name: T
) -> UpDownSumObserverBuilder<'_, f64> where
T: Into<String>,
Creates a new floating point UpDownSumObserverBuilder
for f64
values with the given name.
pub fn u64_value_observer<T>(&self, name: T) -> ValueObserverBuilder<'_, u64> where
T: Into<String>,
pub fn u64_value_observer<T>(&self, name: T) -> ValueObserverBuilder<'_, u64> where
T: Into<String>,
Creates a new integer ValueObserverBuilder
for u64
values with the given name.
pub fn i64_value_observer<T>(&self, name: T) -> ValueObserverBuilder<'_, i64> where
T: Into<String>,
pub fn i64_value_observer<T>(&self, name: T) -> ValueObserverBuilder<'_, i64> where
T: Into<String>,
Creates a new integer ValueObserverBuilder
for i64
values with the given name.
pub fn f64_value_observer<T>(&self, name: T) -> ValueObserverBuilder<'_, f64> where
T: Into<String>,
pub fn f64_value_observer<T>(&self, name: T) -> ValueObserverBuilder<'_, f64> where
T: Into<String>,
Creates a new floating point ValueObserverBuilder
for f64
values with the given name.