velvet-web 0.6.0

Wrapper stack for webapp apis
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use axum_prometheus::metrics::{Counter, Gauge, Histogram};

pub fn metric_counter(name: &'static str) -> Counter {
    axum_prometheus::metrics::counter!(name)
}

pub fn metric_gauge(name: &'static str) -> Gauge {
    axum_prometheus::metrics::gauge!(name)
}

pub fn metric_histogram(name: &'static str) -> Histogram {
    axum_prometheus::metrics::histogram!(name)
}