| Crates.io | iron_telemetry |
| lib.rs | iron_telemetry |
| version | 0.4.0 |
| created_at | 2025-11-29 13:11:03.687641+00 |
| updated_at | 2025-12-18 09:26:12.191438+00 |
| description | Logging and tracing infrastructure for Iron Cage AI agent management |
| homepage | |
| repository | https://github.com/.../iron_cage |
| max_upload_size | |
| id | 1956673 |
| size | 34,256 |
Structured logging and tracing for all Iron Cage crates.
[dependencies]
iron_telemetry = { path = "../iron_telemetry" }
use iron_telemetry::{init_logging, log_agent_event, log_pii_detection};
// Initialize logging with default configuration
init_logging()?;
// Log agent lifecycle events
log_agent_event("agent_001", "Agent started processing leads");
// Log PII detection (specialized format)
log_pii_detection("agent_001", "email", "john@example.com");
// Output: [14:32:05] INFO agent-001 | Agent started processing leads
// Output: [14:32:06] WARN agent-001 | PII DETECTED: email redacted
Responsibilities:
Provides centralized logging abstraction using the tracing crate. Outputs structured, timestamped, colored logs for terminal display and machine-readable JSON for storage. Injects agent context into all log events for traceability.
In Scope:
tracing crateOut of Scope:
| File | Responsibility |
|---|---|
| lib.rs | Centralized structured logging and tracing for Iron Runtime. |
Notes:
Apache-2.0