Skip to content

feat: add request ID middleware for request tracing#286

Open
shivv23 wants to merge 1 commit intoc2siorg:mainfrom
shivv23:pr/request-id-middleware
Open

feat: add request ID middleware for request tracing#286
shivv23 wants to merge 1 commit intoc2siorg:mainfrom
shivv23:pr/request-id-middleware

Conversation

@shivv23
Copy link
Copy Markdown
Contributor

@shivv23 shivv23 commented Apr 6, 2026

Add request ID middleware to track requests across services.

Changes:

  • app/middleware.py: Add RequestIDMiddleware class
  • app/main.py: Register the middleware

The middleware generates a UUID for each request if not provided,
and adds X-Request-ID header to responses.

@shivv23 shivv23 force-pushed the pr/request-id-middleware branch 3 times, most recently from fc4c91d to 0b99827 Compare April 11, 2026 18:52
@ivantha
Copy link
Copy Markdown
Member

ivantha commented Apr 13, 2026

This PR's head branch is behind main. Please rebase onto the latest main (e.g. git fetch origin && git rebase origin/main) and force-push to make it mergeable.

@shivv23 shivv23 force-pushed the pr/request-id-middleware branch from 0b99827 to e6e19bd Compare April 14, 2026 05:33
@shivv23
Copy link
Copy Markdown
Contributor Author

shivv23 commented Apr 14, 2026

Thanks @ivantha! The branch has been rebased onto main and is now mergeable.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants