Expand description
Logging and observability infrastructure for xchecker
This module provides structured logging capabilities with timing, resource usage tracking, and verbose output support.
Implements FR-OBS-001: Structured logging with tracing support
Structs§
- File
Operation - Represents a file operation for logging
- Logger
- Logger for verbose output and observability (R7.5, NFR5)
- Memory
Stats - Memory usage statistics
- Performance
Metrics - Performance metrics for benchmarking (NFR1)
- Performance
Targets - Performance targets for validation (NFR1)
- Timing
Info - Timing information for operations
- Timing
Percentiles - Timing percentiles for performance analysis
Functions§
- init_
tracing - Initialize tracing subscriber for structured logging (FR-OBS-001)
- log_
cache_ stats - Log cache statistics (standalone function for use outside Logger)
- log_
doctor_ report - Log doctor report to console (wires Doctor into logging)
- log_
phase_ complete - Log phase completion with duration (FR-OBS-001)
- log_
phase_ error - Log phase error with context (FR-OBS-001, FR-OBS-002, FR-OBS-003)
- log_
phase_ start - Log phase start with structured fields (FR-OBS-001)
- phase_
span - Create a span for phase execution with structured fields (FR-OBS-001)