Repository navigation
Commit b901b5d
feat(serving): API-usage + session analytics behind ControlPlaneStore (ADR 0010 slice 4) (#134)
api_usage/api_sessions never shared query_engine._conn (AuthManager.db_path
is always its own file), so EmbeddedControlPlaneStore gains a second,
orthogonal usage_db_path_provider alongside conn_provider. Scope widened past
usage_table.py/analytics.py: key_rotation.py's old-key-usage queries and
admin_ui.py's QPS tile also queried these tables directly and are covered
here too, so slice 5's PostgreSQL swap doesn't leave two call sites hard-wired
to a local DuckDB file. All pre-port public/test-facing signatures preserved.
Co-authored-by: JuliaEdom <uedomskikh@gmail.com>1 parent 4a97cf5 commit b901b5d
14 files changed
Lines changed: 1092 additions & 797 deletions
File tree
- docs/decisions
- src/serving
- api
- auth
- routers
- control_plane
- tests
- integration
- unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
7 | 37 | | |
8 | 38 | | |
9 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
182 | | - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
183 | 186 | | |
184 | 187 | | |
185 | 188 | | |
| |||
0 commit comments