Struct opentelemetry::metrics::ValueObserverBuilder[][src]

pub struct ValueObserverBuilder<'a, T> { /* fields omitted */ }
This is supported on crate feature metrics only.
Expand description

Configuration options for building a ValueObserver

Implementations

Set the description of this ValueObserver

Set the unit for this ValueObserver.

Create a ValueObserver from this configuration.

Create a ValueObserver from this configuration.

Panics

This method panics if it cannot create an instrument with the provided config. If you want to handle results instead, use try_init

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.