Expand description
Modules§
- dynmetrics
- Methods and structs for working with dynamically created and destroyed metrics.
Macros§
- declare_
metric_ v1 - Declare a new metric.
Structs§
- DynMetrics
Iter - An iterator over all dynamically registered metrics.
- Metadata
- Metadata for a metric.
- Metadata
Iter - An iterator over the entries of a
Metadata
. - Metric
Entry - A statically declared metric entry.
- Metrics
- Provides access to all registered metrics both static and dynamic.
- Metrics
Iter - An iterator over all registered metrics.
- Request
Request
supports generic, type-driven access to data.
Enums§
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 thedynmetrics
module. - request_
ref - Request a reference of type
T
from the givenimpl Metric
. - request_
value - Request a value of type
T
from the givenimpl Metric
.