Repository navigation
log the client-facing status on completed requests - #253
Merged
Merged
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughProxy completion logs now include the client-visible HTTP status. Backend 5xx completions log at WARN, while other completions log at INFO. Olla refusals retain sampled rejection logging and no longer produce a separate INFO received line. ChangesProxy status logging
Priority: Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Bug fix Sequence Diagram(s)sequenceDiagram
participant Client
participant ProxyHandler
participant Backend
participant ResponseStartedWriter
participant RequestLogger
ProxyHandler->>Backend: Send proxy request
Backend->>ResponseStartedWriter: Write response status and body
ResponseStartedWriter->>Client: Write client response
ProxyHandler->>ResponseStartedWriter: Read Status()
ProxyHandler->>RequestLogger: Log result with http_status
Possibly related PRs
Merge Risk:
|
5 tasks done
This was referenced Oct 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Review as a unit or squash: the head commit
a627411is prefixedWIP:by mistake. It passesmake ready.Summary
The per-request
Request completedline did not say what status the client got, so a backend returning502or503read the same as a success.It now carries
http_statuson every proxy route (/olla/proxy/, provider routes and the Anthropic route; passthrough and translation; streaming included). A backend5xxis logged atWARN; a4xxstays atINFO. The status comes fromresponseStartedWriter(retry.go), which also records the implicit 200 on flush. Failed requests write the error response before logging so they carry their status. Olla's own rejections are unchanged and still go through the sampledRequest rejectedline; a rejected request no longer also writes anINFORequest receivedline.Type of change
How was this tested?
New tests:
TestResponseStartedWriter_Status,TestResponseStartedWriter_FlushStatusTestRequestCompleted_CarriesBackendStatus(inhandler_proxy_completed_status_test.go)TestRequestRejected_NotDuplicatedByCompletionTestLogRequestResult_FailureCarriesHTTPStatusTestRequestFailed_CarriesWrittenErrorStatusTested together with the other October follow-up branches on a local integration branch at
0c25e0a:make readyandmake test-racepass at0c25e0a/olla-validate --quick: 42 pass, 0 fail (warnings and skips are nightly-only items)tei-routingvalidation area: Section A 12/12, Section B B1 to B6 pass/test-sticky-sessions: no new failures (the 7 provider-route 404s are the known shared-mock-URL limitation)/claude-code-e2eagainst real Ollama: Tier A 16/0 on both the passthrough and translation legs, same as mainChecklist
make readypasses ata627411docs/content/configuration/practices/monitoring.md, v0.0.30 release noteSummary by CodeRabbit