You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(backend): add request ID middleware for distributed tracing #47
No correlation ID is generated or propagated. When a request fails it is impossible to correlate the client error with a specific backend log line, especially once Sentry and structured logs are both in play.
Expected behaviour
Every request gets a unique ID (UUID v4 or similar)
The ID is read from X-Request-ID if the caller provides one, otherwise generated
The ID is set on the Gin context and included in all log lines for that request
The ID is returned in the X-Request-ID response header
Acceptance criteria
New middleware in internal/transport/middleware/request_id.go
Middleware registered before the logger in routes.go
Logger middleware reads the ID from context and includes it in every log entry
Activity
GRACENOBLE commentedon Jun 25, 2026
Implemented and merged via PR #65.