Skip to content

[ENHANCEMENT] Add request ID tracking for better debugging and traceability #395

@Lochit-Vinay

Description

@Lochit-Vinay

Description

Currently, there is no way to trace a request across logs and processing steps.
This makes debugging difficult, especially when handling multiple concurrent requests.

Proposed Solution

Introduce a unique request ID for every incoming API request.

Suggested Implementation

  • Generate a UUID for each request
  • Attach it to:
    • logs
    • responses (optional)
  • Use middleware to inject request ID

Example

Response:
{
  "request_id": "abc-123",
  "data": {...}
}

Benefits

  • Easier debugging
  • Better observability
  • Helps track failures across pipeline stages

Note

I didn’t find any existing issue related to request tracing or request IDs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions