Expand description
Observability layer — tracing, audit, cost tracking, and event sourcing.
Re-exports§
pub use audit_trail::AuditAction;pub use audit_trail::AuditError;pub use audit_trail::AuditPersistence;pub use audit_trail::AuditTrail;pub use audit_trail::HashDigest;pub use audit_trail::TrailEntry;
Modules§
- audit_
trail - Tamper-evident audit trail with cryptographic hash chain (blake3).
Structs§
- Audit
Filter - Filter criteria for querying the audit log.
- Audit
Log - Audit log — append-only event recorder with query and subscription.
- Cost
Breakdown - Cost breakdown by category (USD).
- Cost
Snapshot - Per-agent cost snapshot.
- Cost
Tracker - Cost tracker — accumulates token usage and computed costs per agent.
- Cost
Tracker Config - Configuration for the cost tracker.
- Event
Query - Filter for querying events.
- Event
Store - Append-only event store with per-stream indexing.
- Event
Store Config - Configuration for the event store.
- Global
Cost Snapshot - Global cost snapshot across all agents.
- Observability
Decorator - Built-in decorator that bundles audit, authorizer, tracer, and cost tracker observability and applies them to every spawned agent.
- Span
- A single unit of work within a trace, with timing, status, and metadata.
- Span
Context - Identifies a span within a trace and links it to its parent.
- Span
Guard - RAII guard for an in-flight span; finalizes and records the span on drop.
- SpanId
- Unique span identifier.
- Stored
Event - A stored domain event.
- Token
Usage - Token usage broken down by component.
- TraceId
- Unique trace identifier.
- Tracer
- Collects completed spans and broadcasts them to subscribers.
Enums§
- Audit
Entry - An audit trail entry.
- Span
Kind - Role or classification of a span within a trace.
- Span
Status - Outcome status of a span.
Traits§
- Agent
Decorator - Pluggable transform applied to every agent a supervisor spawns.