Crate tacho [−] [src]
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
allows application code to record runtime information to a
central Aggregator
that merges data into a Report
.
Performance
We found that the default (cryptographic) Hash
algorithm adds a significant
performance penalty, so the (non-cryptographic) RandomXxHashBuilder
algorithm is
used..
Labels are stored in a BTreeMap
because they are used as hash keys and, therefore,
need to implement Hash
.
Modules
prometheus |
Structs
Counter |
Counts monotically. |
Gauge |
Captures an instantaneous value. |
Key |
Describes a metric. |
ReportPeek | |
ReportTake | |
Reporter | |
Scope |
Supports creation of scoped metrics. |
Stat |
Caputres a distribution of values. |
Traits
Report | |
Timing |
Functions
new |
Creates a metrics registry. |