[][src]Struct opentelemetry::metrics::InstrumentConfig

pub struct InstrumentConfig { /* fields omitted */ }
This is supported on crate feature metrics only.

Config contains some options for metrics of any kind.

Implementations

impl InstrumentConfig[src]

pub fn with_instrumentation_name(instrumentation_name: &'static str) -> Self[src]

Create a new config from instrumentation name

pub fn with_instrumentation(
    instrumentation_name: &'static str,
    instrumentation_version: Option<&'static str>
) -> Self
[src]

Create a new config with instrumentation name and optional version

pub fn description(&self) -> Option<&String>[src]

Description is an optional field describing the metric instrument.

pub fn unit(&self) -> Option<&Unit>[src]

Unit is an optional field describing the metric instrument data.

pub fn instrumentation_name(&self) -> &'static str[src]

Instrumentation name is the name given to the Meter that created this instrument.

pub fn instrumentation_version(&self) -> Option<&'static str>[src]

Instrumentation version returns the version of instrumentation

Trait Implementations

impl Clone for InstrumentConfig[src]

impl Debug for InstrumentConfig[src]

impl Hash for InstrumentConfig[src]

impl PartialEq<InstrumentConfig> for InstrumentConfig[src]

impl StructuralPartialEq for InstrumentConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,