Skip to content

Implement Request Correlation ID Tracing (X-Request-ID) to Celery Worker Logs#79

Description

@hardikkaurani

馃煛 Intermediate Issue

Problem

HTTP X-Request-ID headers from API requests are not propagated to Celery async worker logs, making it impossible to correlate API requests with background task execution.

Why It Matters

Request-ID tracing enables end-to-end request correlation for debugging, audit logging, and observability across the distributed system.

Suggested Files

  • backend/app/jobs/queue/tasks.py
  • backend/app/core/ (middleware or logging module)

Definition of Done

  • X-Request-ID propagated to Celery task contextvars.
  • Worker logs include matching request_id context.
  • Pytest verifies request ID propagation.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendBackend API, database, and business logichelp wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions