tower_http_metrics/
lib.rs1#[cfg(feature = "server")]
2pub use self::server::{HttpServerMetricsLayer, HttpServerMetricsService};
3#[cfg(feature = "util")]
4pub use self::util::HttpMetricsServiceBuilderExt;
5
6#[cfg(feature = "server")]
7pub mod server;
8#[cfg(feature = "util")]
9pub mod util;
10
11pub const HTTP_SERVER_REQUESTS_TOTAL: &str = "http_server_requests_total";
12pub const HTTP_SERVER_REQUESTS_PENDING: &str = "http_server_requests_pending";
13pub const HTTP_SERVER_REQUEST_DURATION_SECONDS: &str = "http_server_request_duration_seconds";