Crate metriki_tokio

Crate metriki_tokio 

Source
Expand description

§Metriki Tokio Instrument

This library provides tokio-metrics integration for metriki.

§Setup

This library provides RuntimeMetrics by default. Accroding to tokio-metrics, tokio_unstable is required for this feature. See the doc for steps to setup the cargo configuration.

To disable unstable features, you can include this library with default-features = false.

§Usage

An Example is provided in the codebase.

Check docs of tokio-metrics for meaning of the metrics.

Structs§

TokioTaskMetricsSet
A MetricsSet works with tokio_metrics TaskMonitor.
TokioTaskMetricsSetBuilder
Builder for TokioTaskMetricsSet.

Enums§

TokioTaskMetricsSetBuilderError
Error type for TokioTaskMetricsSetBuilder