logo
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

Creates a new integer SumObserverBuilder for u64 values with the given name.

Creates a new floating point SumObserverBuilder for f64 values with the given name.

Creates a new integer UpDownSumObserverBuilder for i64 values with the given name.

Creates a new floating point UpDownSumObserverBuilder for f64 values with the given name.

Creates a new integer ValueObserverBuilder for u64 values with the given name.

Creates a new integer ValueObserverBuilder for i64 values with the given name.

Creates a new floating point ValueObserverBuilder for f64 values with the given name.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.