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.
This commit is contained in:
Anastasia Lubennikova
2023-04-26 17:47:54 +03:00
committed by GitHub
parent 6861259be7
commit 92214578af

View File

@@ -95,7 +95,7 @@ fn gather_proxy_io_bytes_per_client() -> Vec<(Ids, (u64, DateTime<Utc>))> {
current_metrics.push((
Ids {
endpoint_id: endpoint_id.to_string(),
branch_id: "".to_string(),
branch_id: branch_id.to_string(),
},
(value, Utc::now()),
));