A simple Rust project demonstrating the use of the tracing crate for structured logging and debugging.
- Structured logging with key-value pairs
- Span-based operation tracking
- Configurable log levels via environment variables
- Best practices guide for AI agents using tracing
Ensure you have Rust installed. Clone the repository and build:
git clone <repository-url>
cd log-test
cargo buildRun the application with debug logging:
RUST_LOG=debug cargo runThis will output structured debug messages demonstrating tracing features.
tracing: For logging and tracingtracing-subscriber: For log formatting and filtering
See best_practices.md for a system prompt on using tracing effectively in Rust development, tailored for AI agents.
[Add license if applicable]