diff --git a/lib/src/protocol/pipe.rs b/lib/src/protocol/pipe.rs index d6ad6283c..e5e63d1c4 100644 --- a/lib/src/protocol/pipe.rs +++ b/lib/src/protocol/pipe.rs @@ -513,6 +513,8 @@ impl Pipe { if self.frontend_buffer.available_data() == 0 { self.frontend_readiness.interest.insert(Ready::READABLE); self.backend_readiness.interest.remove(Ready::WRITABLE); + count!("back_bytes_out", sz as i64); + metrics.backend_bout += sz; return SessionResult::Continue; } @@ -531,6 +533,7 @@ impl Pipe { } } + count!("back_bytes_out", sz as i64); metrics.backend_bout += sz; if !self.check_connections() {