Conversation
Add RequestIDMiddleware that generates UUID v4 (or propagates incoming X-Request-ID header), injects the ID into the request context, and sets it on the response header. Add TimeoutMiddleware that wraps the request context with a configurable deadline (default 60s) using context.WithTimeout. Update LoggingMiddleware to include request_id in log output when present in context. Wire both middleware into the router chain in order: CORS -> Request ID -> Timeout -> Logging -> routes. Assisted by the code-assist SOP
… check Add POST /api/v1/analyze endpoint that validates JSON input (url, html fields), invokes the analysis pipeline, and maps errors to appropriate HTTP status codes (400 validation, 504 timeout, 502 upstream failure). Introduce PipelineRunner interface for testability, allowing the handler to be tested with a mock analyzer without constructing the full dependency chain. Update NewHealthHandler to accept an optional Qdrant health check function that reports 'connected' or 'unavailable' status, falling back to showing the configured URL when no check is provided. Update NewRouter signature to accept pipeline and qdrant check dependencies, register the new analyze route, and update main.go accordingly (passing nil for now until full pipeline wiring). Assisted by the code-assist SOP
Parth576
commented
Feb 26, 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.
No description provided.