Skip to content

Commit 172bf14

Browse files
bhaveshpatel640trueforge-dev-bot[bot]sr07asthanacursoragent
authored
Add session metrics API and per-session totals (#484)
* Add session metrics API and per-session totals * Regenerate OpenAPI document and TypeScript SDK * nit * Regenerate OpenAPI document and TypeScript SDK * move validation to zod layer * nit * nit * Regenerate OpenAPI document and TypeScript SDK * Include zero-turn and zero-duration sessions in metrics distributions. Surface empty/in-flight sessions in min/avg/median meters so anomalies are visible; drop the >0 filter and active_sessions denominator. Co-authored-by: Cursor <cursoragent@cursor.com> * nit: say charts instead of chart catalog in changeset Co-authored-by: Cursor <cursoragent@cursor.com> * update storeContractSuite * move metrics api to internal * remove metrics folding from core * register metrics under internal route * register metrics route and wire in schema and apis * nit * Regenerate OpenAPI document and TypeScript SDK * nit * nit * Regenerate OpenAPI document and TypeScript SDK * nit * resolve comments * Regenerate OpenAPI after consolidating metrics unit schema. Co-authored-by: Cursor <cursoragent@cursor.com> * fix test * nit * Regenerate OpenAPI after removing unreachable metrics 404 responses. Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: trueforge-dev-bot[bot] <trueforge-dev-bot[bot]@users.noreply.github.com> Co-authored-by: Srajan Asthana <srajan@truefoundry.com> Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent db0027c commit 172bf14

71 files changed

Lines changed: 3711 additions & 3 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@truefoundry/trueforge-core': patch
3+
'@truefoundry/trueforge': patch
4+
---
5+
6+
Add caller-scoped session metrics meters, charts, and chart-data under `/internal/metrics` via a server-owned `ISessionMetricsStore`.

0 commit comments

Comments
 (0)