Expand description
A thread-safe, Future
-aware metrics library.
Many programs need to information about runtime performance: the number of requests
served, a distribution of request latency, the number of failures, the number of loop
iterations, etc. tacho::new
creates a shareable, scopable metrics registry and a
Reporter
. The Scope
supports the creation of Counter
, Gauge
, and Stat
handles that may be used to report values. Each of these receivers maintains a weak
reference back to the central stats registry.
§Performance
Labels are stored in a BTreeMap
because they are used as hash keys and, therefore,
need to implement Hash
.
Modules§
Structs§
- Counter
- Counts monotically.
- Gauge
- Captures an instantaneous value.
- Histogram
With Sum - Tracks a distribution of values with their sum.
- Key
- Describes a metric.
- Registry
- Report
- Reporter
- Scope
- Supports creation of scoped metrics.
- Stat
- Caputres a distribution of values.
- Timed
- Timer
Enums§
Traits§
Functions§
- new
- Creates a metrics registry.