Skip to content

feat: Add request ID propagation middleware - #24

Open
Nexussyn wants to merge 7 commits into
GautamKumarOffical:mainfrom
Nexussyn:feat/issue-17-request-id-propagation
Open

feat: Add request ID propagation middleware#24
Nexussyn wants to merge 7 commits into
GautamKumarOffical:mainfrom
Nexussyn:feat/issue-17-request-id-propagation

Conversation

@Nexussyn

Copy link
Copy Markdown

Summary

Implements request ID propagation for distributed tracing:

  • Adds middleware that extracts or generates X-Request-ID header
  • Stores request ID in request extensions for downstream access
  • Includes response header with request ID for client correlation

Closes #17

@Nexussyn

Copy link
Copy Markdown
Author

Ready for merge — All issues resolved:

  • Fixed REQUEST_ID_HEADER constant that contained garbage characters — now correctly set to "X-Request-ID"
  • Fixed tower::Service impl signature (removed invalid Into<http::Response<()>> bound)
  • Added pub mod middleware export in lib.rs
  • Middleware logic is complete and tests pass

This PR is ready for review and merge.

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.

Bounty #249: Request ID Propagation

1 participant