Hook up the new metrics.
@@ -13,6 +13,7 @@ mod delta;
mod errors;
mod listener;
mod log;
+mod metrics;
mod payload;
mod status;
mod ui;
@@ -49,6 +50,11 @@ async fn handle_request(
if let Some(response) = log::handle_get(&req, log) {
return response
}
+ if let Some(response) = metrics::handle_get(
+ &req, origins, metrics, rtr_metrics
+ ).await {
+ return response
+ }
if let Some(response) = status::handle_get(
&req, origins, metrics, rtr_metrics
).await {
