Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Mérni
Hungarian: to measure wiktionary
An opinionated metrics crate with low overhead, and thread-local aggregation.
Quick start
With the "datadog" feature enabled, you can quickly initialize a global
metrics dispatcher, which will periodically flush metrics to Datadog.
use Duration;
async
Details
Mérni consists of some layers of abstraction.
At the core, there is the [Dispatcher], which dispatches metrics to a generic [Sink].
The dispatcher can then be registered globally using [set_global_dispatcher].
One of the sinks is the [ThreadLocalAggregator], enabled using the "aggregator" feature.
This specialized sink does thread-local pre-aggregation, before periodically
flushing the fully aggregated metrics to yet another generic [AggregationSink].
It is possible to drop down to the most basic APIs, and implement the [Sink]
trait directly.
;
let dispatcher = new;
set_global_dispatcher.expect;
counter!;
counter!;