[][src]Trait opentelemetry::api::metrics::Instrument

pub trait Instrument<LS> {
    fn record_one(&self, value: MeasurementValue, label_set: &LS);
}

The implementation-level interface to Set/Add/Record individual metrics without precomputed labels.

Required methods

fn record_one(&self, value: MeasurementValue, label_set: &LS)

Allows the SDK to observe a single metric event for a given set of labels.

Loading content...

Implementors

impl Instrument<HashMap<Cow<'static, str>, Cow<'static, str>, RandomState>> for IntMeasure[src]

fn record_one(&self, value: MeasurementValue, label_set: &LabelSet)[src]

record a single measure measurement value

impl Instrument<HashMap<Cow<'static, str>, Cow<'static, str>, RandomState>> for CounterVec[src]

fn record_one(&self, value: MeasurementValue, label_set: &LabelSet)[src]

record a single counter measurement value

impl Instrument<HashMap<Cow<'static, str>, Cow<'static, str>, RandomState>> for GaugeVec[src]

fn record_one(&self, value: MeasurementValue, label_set: &LabelSet)[src]

record a single gauge measurement value

impl Instrument<HashMap<Cow<'static, str>, Cow<'static, str>, RandomState>> for HistogramVec[src]

fn record_one(&self, value: MeasurementValue, label_set: &LabelSet)[src]

record a single measure measurement value

impl Instrument<HashMap<Cow<'static, str>, Cow<'static, str>, RandomState>> for IntCounterVec[src]

fn record_one(&self, value: MeasurementValue, label_set: &LabelSet)[src]

Record a single counter measurement value

impl Instrument<HashMap<Cow<'static, str>, Cow<'static, str>, RandomState>> for IntGaugeVec[src]

fn record_one(&self, value: MeasurementValue, label_set: &LabelSet)[src]

record a single gauge measurement value

impl<T> Instrument<NoopLabelSet> for NoopCounter<T>[src]

fn record_one(&self, _value: MeasurementValue, _labels: &NoopLabelSet)[src]

Ignores all recorded measurement values.

impl<T> Instrument<NoopLabelSet> for NoopGauge<T>[src]

fn record_one(&self, _value: MeasurementValue, _labels: &NoopLabelSet)[src]

Ignores all measurement values and labels.

impl<T> Instrument<NoopLabelSet> for NoopHandle<T>[src]

impl<T> Instrument<NoopLabelSet> for NoopMeasure<T>[src]

fn record_one(&self, _value: MeasurementValue, _labels: &NoopLabelSet)[src]

Ignores all measurement values and labels.

Loading content...