[−][src]Type Definition opentelemetry::exporter::metrics::prometheus::CounterVec
type CounterVec = MetricVec<CounterVecBuilder<AtomicF64>>;
A Collector
that bundles a set of Counter
s that all share
the same Desc
, but have different values for their variable labels. This is
used if you want to count the same thing partitioned by various dimensions
(e.g. number of HTTP requests, partitioned by response code and method).
Trait Implementations
impl Counter<f64, HashMap<Cow<'static, str>, Cow<'static, str>, RandomState>> for CounterVec
[src]
type Handle = CounterHandle
The handle type for the implementing Counter
.
fn measurement(&self, value: f64) -> Measurement<LabelSet>
[src]
Creates a Measurement
object to be used by a Meter
when batch recording.
fn acquire_handle(&self, labels: &LabelSet) -> Self::Handle
[src]
Creates a handle for this instrument.
fn add(&self, value: T, label_set: &LS)
[src]
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