[−][src]Struct opentelemetry::sdk::metrics::Meter
Meter
implementation to create manage metric instruments and record
batch measurements
Implementations
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 KeyValue
s.
fn new_i64_counter<S: Into<String>>(
&self,
name: S,
opts: MetricOptions
) -> Self::I64Counter
[src]
&self,
name: S,
opts: MetricOptions
) -> Self::I64Counter
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]
&self,
name: S,
opts: MetricOptions
) -> Self::F64Counter
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]
&self,
name: S,
opts: MetricOptions
) -> Self::I64Gauge
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]
&self,
name: S,
opts: MetricOptions
) -> Self::F64Gauge
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]
&self,
name: S,
opts: MetricOptions
) -> Self::I64Measure
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]
&self,
name: S,
opts: MetricOptions
) -> Self::F64Measure
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]
&self,
label_set: &Self::LabelSet,
measurements: M
)
Records a batch of measurements.
Auto Trait Implementations
impl !RefUnwindSafe for Meter
impl Send for Meter
impl Sync for Meter
impl Unpin for Meter
impl !UnwindSafe for Meter
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> FutureExt for T
[src]
fn with_context(self, otel_cx: OpenTelemetryContext) -> WithContext<Self>ⓘNotable traits for WithContext<T>
impl<T: Future> Future for WithContext<T> type Output = T::Output;
[src]
Notable traits for WithContext<T>
impl<T: Future> Future for WithContext<T> type Output = T::Output;
fn with_current_context(self) -> WithContext<Self>ⓘNotable traits for WithContext<T>
impl<T: Future> Future for WithContext<T> type Output = T::Output;
[src]
Notable traits for WithContext<T>
impl<T: Future> Future for WithContext<T> type Output = T::Output;
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,