Skip to content

feat: add tower-http tracing support#39

Merged
ngerakines merged 1 commit intograze-social:mainfrom
bigmoves:feature/tower-trace
Aug 17, 2025
Merged

feat: add tower-http tracing support#39
ngerakines merged 1 commit intograze-social:mainfrom
bigmoves:feature/tower-trace

Conversation

@bigmoves
Copy link
Contributor

Noticed the tower-http trace feature wasn't enabled in the cargo.toml but used in the example configuration.md. This should fix it!

Summary

  • Add tower-http trace feature and TraceLayer middleware for
    HTTP request/response logging
  • Enables structured logging of incoming HTTP requests and
    responses

Usage

To enable HTTP request tracing, set the following environment
variable:

RUST_LOG=tower_http=debug

This will log detailed information about incoming HTTP requests
including:
- Request method and URI
- Response status codes
- Request/response timing
- Headers (configurable)

  - Add trace feature to tower-http dependency in Cargo.toml
  - Add TraceLayer middleware to HTTP router for request/response
  logging
@ngerakines ngerakines merged commit ed19d50 into graze-social:main Aug 17, 2025
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