derust 0.2.0

Easy way to start your Rust asynchronous application server using Tokio and Axum frameworks.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::httpx::AppContext;
use crate::metricx::meters::MetricTags;

pub fn record_money<S>(
    context: &AppContext<S>,
    metric_name: &str,
    metric_tags: MetricTags,
    value: f64,
) where
    S: Clone,
{
    metrics::histogram!(metric_name.to_string(), metric_tags.to_labels(
        context.app_name(),
        context.env(),
        context.denied_metric_tags(),
        context.denied_metric_tags_by_regex(),
    )).record(value);
}