Skip to content

feat(obs): add client usage reporting#72

Merged
typelicious merged 1 commit into
mainfrom
codex/feature/v1.1-client-metrics-2026-03-16
Mar 15, 2026
Merged

feat(obs): add client usage reporting#72
typelicious merged 1 commit into
mainfrom
codex/feature/v1.1-client-metrics-2026-03-16

Conversation

@typelicious
Copy link
Copy Markdown
Collaborator

What changed

  • add richer client usage aggregates to the metrics store
  • expose aggregate client totals through GET /api/stats
  • extend the dashboard with top-client, client totals, token, failure, success-rate, and cost-per-request views
  • update metrics tests and API docs

Why

  • the next v1.1 operations slice should make client traffic visible, not just total traffic
  • token and cost visibility per client is already stored; this slice surfaces it where operators can use it
  • this sets up the later routing-rule review with better evidence

How verified

  • python3 -m compileall foundrygate tests
  • PYTHONPATH=. ./.venv-check-313/bin/pytest -q tests/test_metrics_traces.py
  • ./.venv-check-313/bin/ruff check foundrygate/metrics.py foundrygate/main.py tests/test_metrics_traces.py
  • /usr/bin/git diff --check

@typelicious typelicious merged commit 1536f54 into main Mar 15, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant