auth_broker: fix local_proxy conn count (#9593)

our current metrics for http pool opened connections is always negative
:D oops
This commit is contained in:
Conrad Ludgate
2024-10-31 14:57:55 +00:00
committed by GitHub
parent 552088ac16
commit 897cffb9d8

View File

@@ -294,6 +294,11 @@ pub(crate) fn poll_http2_client(
conn_id,
aux: aux.clone(),
});
Metrics::get()
.proxy
.http_pool_opened_connections
.get_metric()
.inc();
Arc::downgrade(&pool)
}
@@ -306,7 +311,7 @@ pub(crate) fn poll_http2_client(
let res = connection.await;
match res {
Ok(()) => info!("connection closed"),
Err(e) => error!(%session_id, "connection error: {}", e),
Err(e) => error!(%session_id, "connection error: {e:?}"),
}
// remove from connection pool