mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-05 20:42:54 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user