Skip to main content

Module metrics

Module metrics 

Source
Expand description

Collects task, runtime, and request metrics.

Runtime instrumentation is enabled when the required Tokio facilities are available. Snapshot helpers expose interval data to diagnostics and telemetry.

Re-exportsยง

use std::sync::Arc; ๐Ÿ”’
use std::sync::Mutex; ๐Ÿ”’
use std::sync::atomic::AtomicU32; ๐Ÿ”’
use std::sync::atomic::AtomicU64; ๐Ÿ”’
use tokio::runtime; ๐Ÿ”’
use tokio_metrics::TaskMetrics; ๐Ÿ”’
use tokio_metrics::TaskMonitor; ๐Ÿ”’

Modulesยง

dump
Exit-time dumps of runtime metrics and resource usage.

Structsยง

Metrics
Owns process-wide runtime, task, and request measurements.