mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-22 15:41:15 +00:00
proxy: Exclude compute and retries (#7529)
## Problem Alerts fire if the connection the compute is slow. ## Summary of changes Exclude compute and retry from latencies.
This commit is contained in:
@@ -179,7 +179,9 @@ impl ConnectMechanism for TokioMechanism {
|
||||
.dbname(&self.conn_info.dbname)
|
||||
.connect_timeout(timeout);
|
||||
|
||||
let pause = ctx.latency_timer.pause(crate::metrics::Waiting::Compute);
|
||||
let (client, connection) = config.connect(tokio_postgres::NoTls).await?;
|
||||
drop(pause);
|
||||
|
||||
tracing::Span::current().record("pid", &tracing::field::display(client.get_process_id()));
|
||||
Ok(poll_client(
|
||||
|
||||
Reference in New Issue
Block a user