Skip to main content

Module observability

Module observability 

Source
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§

AuditFilter
Filter criteria for querying the audit log.
AuditLog
Audit log — append-only event recorder with query and subscription.
CostBreakdown
Cost breakdown by category (USD).
CostSnapshot
Per-agent cost snapshot.
CostTracker
Cost tracker — accumulates token usage and computed costs per agent.
CostTrackerConfig
Configuration for the cost tracker.
EventQuery
Filter for querying events.
EventStore
Append-only event store with per-stream indexing.
EventStoreConfig
Configuration for the event store.
GlobalCostSnapshot
Global cost snapshot across all agents.
ObservabilityDecorator
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.
SpanContext
Identifies a span within a trace and links it to its parent.
SpanGuard
RAII guard for an in-flight span; finalizes and records the span on drop.
SpanId
Unique span identifier.
StoredEvent
A stored domain event.
TokenUsage
Token usage broken down by component.
TraceId
Unique trace identifier.
Tracer
Collects completed spans and broadcasts them to subscribers.

Enums§

AuditEntry
An audit trail entry.
SpanKind
Role or classification of a span within a trace.
SpanStatus
Outcome status of a span.

Traits§

AgentDecorator
Pluggable transform applied to every agent a supervisor spawns.