aster_forge_observability/lib.rs
1//! HTTP observability endpoints for Aster services.
2//!
3//! This crate owns route-level observability glue with Actix and Axum adapters, such as the
4//! Prometheus text exposition endpoint. Metrics recording traits and concrete backend state remain
5//! in `aster_forge_metrics`; product route modules can call these helpers without carrying
6//! backend-specific `#[cfg]` blocks.
7#![cfg_attr(
8 not(test),
9 deny(
10 clippy::unwrap_used,
11 clippy::unreachable,
12 clippy::expect_used,
13 clippy::panic,
14 clippy::unimplemented,
15 clippy::todo
16 )
17)]
18
19#[cfg(feature = "actix")]
20pub mod actix;
21#[cfg(feature = "axum")]
22pub mod axum;