Skip to content

Add a request-id header to all API responses #504

Description

@100rd

Problem

API responses have no correlation id, so tracing a request across logs is hard.

What

Attach an X-Request-Id (uuid) to every response; log it with each request line.

Acceptance criteria

  • every HTTP response carries an X-Request-Id header (uuid v4)
  • the id appears in the structured request log line
  • a unit test asserts the header is present

Metadata

Metadata

Assignees

No one assigned

    Labels

    agentfactory intake

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions