tuwunel_admin/debug/
backoff_metrics.rs1use tuwunel_core::Result;
2
3use crate::admin_command;
4
5#[admin_command]
6pub(super) async fn backoff_metrics(&self) -> Result {
10 let metrics = self.services.event_handler.backoff_metrics();
11 let out = format!(
12 "Backoff verdict counters are process-lifetime totals, one verdict per lookup in the \
13 backoff store before a federation step. Two snapshots should be differenced to obtain \
14 an interval.\n\n```rs\n{metrics:#?}\n```"
15 );
16
17 self.write_str(&out).await
18}