Project usage client family in Postgres reads

This commit is contained in:
RWDai
2026-05-18 19:29:10 +08:00
parent 6d994917a0
commit b6f558d10b
6 changed files with 22 additions and 0 deletions
@@ -8543,6 +8543,9 @@ fn map_usage_row(
.try_get::<f64, _>("cache_read_cost_usd")
.map_postgres_err()?;
usage.output_price_per_1m = row.try_get("output_price_per_1m").map_postgres_err()?;
usage.client_family = row
.try_get::<Option<String>, _>("client_family")
.map_postgres_err()?;
usage.request_headers = row.try_get("request_headers").map_postgres_err()?;
let request_body = usage_json_column(
row,