From 92214578af3311c8d2ea6885f59562c9b53df628 Mon Sep 17 00:00:00 2001 From: Anastasia Lubennikova Date: Wed, 26 Apr 2023 17:47:54 +0300 Subject: [PATCH] Fix proxy_io_bytes_per_client metric: use branch_id identifier properly. (#4084) It fixes the miscalculation of the metric for projects that use multiple branches for the same endpoint. We were under billing users with such projects. So we need to communicate the change in Release Notes. --- proxy/src/metrics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/metrics.rs b/proxy/src/metrics.rs index 445c2e930c..6ae1e3a447 100644 --- a/proxy/src/metrics.rs +++ b/proxy/src/metrics.rs @@ -95,7 +95,7 @@ fn gather_proxy_io_bytes_per_client() -> Vec<(Ids, (u64, DateTime))> { current_metrics.push(( Ids { endpoint_id: endpoint_id.to_string(), - branch_id: "".to_string(), + branch_id: branch_id.to_string(), }, (value, Utc::now()), ));