We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2e54cd commit d9398d9Copy full SHA for d9398d9
examples/axum_with_globals.rs
@@ -19,7 +19,7 @@ use tokio::time;
19
20
static REGISTRY: LazyLock<Mutex<Registry>> = LazyLock::new(|| Mutex::new(Registry::default()));
21
22
-fn register_metric_to_global_registry<MetricType: Metric + Clone + Default>(
+pub fn register_metric_to_global_registry<MetricType: Metric + Clone + Default>(
23
name: &str,
24
help: &str,
25
) -> MetricType {
@@ -31,7 +31,7 @@ fn register_metric_to_global_registry<MetricType: Metric + Clone + Default>(
31
metric
32
}
33
34
-async fn metrics_handler() -> impl IntoResponse {
+pub async fn metrics_handler() -> impl IntoResponse {
35
let mut buffer = String::new();
36
{
37
let registry = REGISTRY
0 commit comments