tokio metrics
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
5ec49b3f62
commit
cce270d938
13 changed files with 157 additions and 33 deletions
|
@ -108,7 +108,7 @@ async fn handle_shutdown(server: &Arc<Server>, tx: &Sender<()>, handle: &axum_se
|
|||
error!("failed sending shutdown transaction to channel: {e}");
|
||||
}
|
||||
|
||||
let pending = server.requests_spawn_active.load(Ordering::Relaxed);
|
||||
let pending = server.metrics.requests_spawn_active.load(Ordering::Relaxed);
|
||||
if pending > 0 {
|
||||
let timeout = Duration::from_secs(36);
|
||||
trace!(pending, ?timeout, "Notifying for graceful shutdown");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue