Break apart metrics into their own module (#335)

Signed-off-by: José Ulises Niño Rivera <junr03@users.noreply.github.com>
This commit is contained in:
José Ulises Niño Rivera 2024-12-09 10:46:46 -08:00 committed by GitHub
parent d002b2042a
commit cd1b561192
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 59 additions and 61 deletions

View file

@ -0,0 +1,14 @@
use common::stats::Gauge;
#[derive(Copy, Clone, Debug)]
pub struct Metrics {
pub active_http_calls: Gauge,
}
impl Metrics {
pub fn new() -> Metrics {
Metrics {
active_http_calls: Gauge::new(String::from("active_http_calls")),
}
}
}