Crate metriken_core

Source
Expand description

Easily registered distributed metrics.

You should usually be using the metriken crate instead. This crate contains the core distributed slice used by metriken so that multiple major versions of metriken can coexist.

Modules§

dynmetrics
Methods and structs for working with dynamically created and destroyed metrics.

Macros§

declare_metric_v1
Declare a new metric.

Structs§

DynMetricsIter
An iterator over all dynamically registered metrics.
Metadata
Metadata for a metric.
MetadataIter
An iterator over the entries of a Metadata.
MetricEntry
A statically declared metric entry.
Metrics
Provides access to all registered metrics both static and dynamic.
MetricsIter
An iterator over all registered metrics.
Request
Request supports generic, type-driven access to data.

Enums§

Format
Value
The value of a metric.

Traits§

Metric
Global interface to a metric.

Functions§

default_formatter
The default formatter supports Prometheus-style exposition, and otherwise simply prints the metric name.
metrics
The list of all metrics registered via the either #[metric] attribute or by using the types within the dynmetrics module.
request_ref
Request a reference of type T from the given impl Metric.
request_value
Request a value of type T from the given impl Metric.