Repository navigation
Conversation
35eb8da to
94bccfb
Compare
94bccfb to
62d02c6
Compare
Preserve the TTFT column, telemetry, and call-log persistence. Extract RequestLogger metrics/sort helpers so file-size and complexity stay inside the frozen ratchets. Renumber the ttft_ms migration to 173. Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
Preserve the TTFT column, telemetry, and call-log persistence. Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
|
Thanks for this — TTFT visibility is genuinely useful. In reviewing the group we found Triage note: this is the review recommendation — the close itself happens only after the maintainer's per-PR sign-off (and, where a superseding PR is named, after it has landed). Nothing is being closed by this comment. |
Summary
Adds Time-to-First-Token (TTFT) metrics to call log telemetry and surfaces a sortable TTFT column in the RequestLogger dashboard.
171_call_logs_ttft_ms.sqladding nullablettft_ms INTEGERtocall_logs.chatCore.tsandattemptLogging.ts. Failed or aborted streams safely recordNULLto avoid poisoning statistical aggregations.RequestLoggerV2.tsxwith adaptive formatting (msfor<1000ms,sfor>=1000ms) and full null-aware sorting (ttft_ascandttft_desc).changelog.d/features/ttft-column-requestlogger.md.Related Issues
N/A
Validation
npm run lintTests Added Or Updated
tests/unit/call-logs-ttft.test.tstests/unit/shared/components/RequestLoggerV2.test.tsCoverage Notes
src/lib/usage/callLogs.ts,open-sse/handlers/chatCore/attemptLogging.ts, andsrc/shared/components/RequestLoggerV2.tsx.Reviewer Notes
171_call_logs_ttft_ms.sql(additive nullable column, backward-compatible with existing call log records).