[proxy] Correctly classify ConnectErrors (#12793)

As is, e.g. quota errors on wake compute are logged as "compute" errors.
This commit is contained in:
Krzysztof Szafrański
2025-07-31 11:53:48 +02:00
committed by GitHub
parent edd60730c8
commit f3ee6e818d

View File

@@ -458,7 +458,7 @@ pub(crate) enum LocalProxyConnError {
impl ReportableError for HttpConnError { impl ReportableError for HttpConnError {
fn get_error_kind(&self) -> ErrorKind { fn get_error_kind(&self) -> ErrorKind {
match self { match self {
HttpConnError::ConnectError(_) => ErrorKind::Compute, HttpConnError::ConnectError(e) => e.get_error_kind(),
HttpConnError::ConnectionClosedAbruptly(_) => ErrorKind::Compute, HttpConnError::ConnectionClosedAbruptly(_) => ErrorKind::Compute,
HttpConnError::PostgresConnectionError(p) => match p.as_db_error() { HttpConnError::PostgresConnectionError(p) => match p.as_db_error() {
// user provided a wrong database name // user provided a wrong database name