Skip to main content

dag_executor/metrics/
mod.rs

1//! Observability: metrics collection and (optional) Prometheus export.
2//!
3//! [`MetricsCollector`] is always available and dependency-free. When the
4//! `metrics` feature is enabled, [`prometheus::PrometheusExporter`] renders
5//! snapshots in Prometheus text format.
6
7pub mod collector;
8
9#[cfg(feature = "metrics")]
10#[cfg_attr(docsrs, doc(cfg(feature = "metrics")))]
11pub mod prometheus;
12
13pub use collector::{MetricsCollector, MetricsSnapshot};