What problem does it solve?
Rust developers often add logging and instrumentation inconsistently, producing unstructured logs that are hard to filter, search, and correlate across services. This Skill codifies HASH's conventions for the tracing crate so spans and events follow a uniform, structured pattern.
Core Features & Use Cases
- Structured Event Recording: Enforces level-specific macros (info!, debug!, trace!, warn!, error!) with named key-value fields for machine-processable log output.
- Function Instrumentation: Standardizes use of the #[tracing::instrument] attribute, including err capture, skip for sensitive parameters, and custom context fields.
- Use Case: When adding observability to a new authentication service, apply this Skill to instrument handlers with spans that capture user IDs while skipping passwords, and emit structured events for login successes and failures.
Quick Start
Add tracing instrumentation to my Rust authentication function following HASH tracing practices, capturing errors and skipping the password parameter.