Skip to content

Add lightweight Core request logs - #690

Merged
SaladDay merged 1 commit into
mainfrom
codex/add-request-log
Oct 13, 2026
Merged

SaladDay merged 1 commit into
mainfrom
codex/add-request-log

Conversation

@SaladDay

@SaladDay SaladDay commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

Core now exposes a lightweight Request log in Web so operators can see incoming API requests, HTTP results, elapsed time and safe error codes. Public and administration traffic have independent bounded windows, preventing console polling from evicting application requests. Filters and local request details reuse the administration API; no database, telemetry backend or setting is added.

The existing response writer records metadata without buffering bodies or changing streaming, implicit Content-Type, HEAD or error behavior. Entries distinguish active, completed and aborted HTTP requests; these states do not claim an asynchronous Agent Turn has completed. Raw paths, query values, headers, payloads, credentials and error messages are not collected. Each window holds the latest 1,000 started requests for the serving API instance and resets at restart; completion metadata also uses the existing process logger.

Validation: full API unit tests, targeted race and real-HTTP writer tests, Core build/vet, OpenAPI freshness, Web/client typechecks, 744 client and 392 Web unit tests, three request-log browser workflows and bilingual visual checks, website build and 22 documentation/website checks. Fresh independent review found no actionable issues.

Microbenchmark with the production JSON/context logger writing to discard: about 14–15 µs added per request, with allocations increasing from 3,360 to 4,642 bytes; reading the bounded 1,000-entry window takes about 196–208 µs. Real log sink latency is not included. Machine transports and full distributed tracing are outside this change.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@SaladDay
SaladDay merged commit d948b40 into main Oct 13, 2026
25 checks passed
@SaladDay
SaladDay deleted the codex/add-request-log branch October 13, 2026 07:20
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