Skip to content

P1 gateway: propagate X-Request-ID to upstreams #11

Description

@SlavaKuntsov

Phase / Priority / Area

Phase 14 · Priority P1 · Area gateway

Зависимости

Blocks: #11, #12, #14

Scope

services/gateway/internal/proxy/proxy.go:18, services/gateway/cmd/server/main.go (middleware.RequestID), services/metadata, services/upload, services/auth

Goal

Трассировка запроса end-to-end.

Acceptance Criteria

  • X-Request-ID (chi), X-User-ID, X-Forwarded-For прокидываются во все ReverseProxy.Director
  • Логи metadata/upload содержат request_id

Проверки

curl -H X-Request-ID:test123 /api/v1/videos → grep логов всех сервисов содержит test123

Out of scope

Метрики

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions