feat(models/up): log details when returning 503#3114
Merged
chrarnoldus merged 1 commit intomainfrom May 8, 2026
Merged
Conversation
Contributor
Author
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (1 files)
Reviewed by gpt-5.5-2026-04-23 · 78,850 tokens |
marius-kilocode
approved these changes
May 8, 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.
Summary
When
/api/models/upreturns 503, also emit aconsole.errorwith the unhealthy monitored models and their per-window metrics. Currently 503 responses leave no server-side trace (only DB/timeout failures hit Sentry via the catch block), so postmortems require replaying the endpoint with?at=<iso>within the 24h lookback. This adds a durable log line so we can reconstruct what tripped the alert from logs alone.Verification
N/A — log-only change behind the existing 503 branch.
Visual Changes
N/A
Reviewer Notes
currentRequests,previousRequests,baselineRequests,percentChange,uniqueUsersBaselineper unhealthy model plus the anchor time. No PII;kilo_user_idis not included.hasSignificantDropis true, so no log volume change in steady state.