[][src]Struct opentelemetry::sdk::metrics::Meter

pub struct Meter { /* fields omitted */ }

Meter implementation to create manage metric instruments and record batch measurements

Methods

impl Meter[src]

pub fn new(component: &'static str) -> Self[src]

Create a new Meter instance with a component name and empty registry.

Trait Implementations

impl Meter for Meter[src]

type LabelSet = LabelSet

The label set used by this Meter.

type I64Counter = IntCounterVec

This implementation of api::Meter produces prometheus::IntCounterVec; instances.

type F64Counter = CounterVec

This implementation of api::Meter produces prometheus::CounterVec; instances.

type I64Gauge = IntGaugeVec

This implementation of api::Meter produces prometheus::IntGaugeVec; instances.

type F64Gauge = GaugeVec

This implementation of api::Meter produces prometheus::GaugeVec; instances.

type I64Measure = IntMeasure

This implementation of api::Meter produces prometheus::IntMeasure; instances.

type F64Measure = HistogramVec

This implementation of api::Meter produces prometheus::HistogramVec; instances.

fn labels(&self, key_values: Vec<KeyValue>) -> Self::LabelSet[src]

Builds a LabelSet from KeyValues.

fn new_i64_counter<S: Into<String>>(
    &self,
    name: S,
    opts: MetricOptions
) -> Self::I64Counter
[src]

Creates a new i64 counter with a given name and customized with passed options.

fn new_f64_counter<S: Into<String>>(
    &self,
    name: S,
    opts: MetricOptions
) -> Self::F64Counter
[src]

Creates a new f64 counter with a given name and customized with passed options.

fn new_i64_gauge<S: Into<String>>(
    &self,
    name: S,
    opts: MetricOptions
) -> Self::I64Gauge
[src]

Creates a new i64 gauge with a given name and customized with passed options.

fn new_f64_gauge<S: Into<String>>(
    &self,
    name: S,
    opts: MetricOptions
) -> Self::F64Gauge
[src]

Creates a new f64 gauge with a given name and customized with passed options.

fn new_i64_measure<S: Into<String>>(
    &self,
    name: S,
    opts: MetricOptions
) -> Self::I64Measure
[src]

Creates a new i64 measure with a given name and customized with passed options.

fn new_f64_measure<S: Into<String>>(
    &self,
    name: S,
    opts: MetricOptions
) -> Self::F64Measure
[src]

Creates a new f64 measure with a given name and customized with passed options.

fn record_batch<M: IntoIterator<Item = Measurement<Self::LabelSet>>>(
    &self,
    label_set: &Self::LabelSet,
    measurements: M
)
[src]

Records a batch of measurements.

Auto Trait Implementations

impl Send for Meter

impl Sync for Meter

impl Unpin for Meter

impl !UnwindSafe for Meter

impl !RefUnwindSafe for Meter

Blanket Implementations

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

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

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

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