Module observability
Re-exports§
pub use self::log::LogObserver;pub use self::multi::MultiObserver;pub use noop::NoopObserver;pub use prometheus::PrometheusObserver;pub use verbose::VerboseObserver;
Modules§
- dora
- log
- multi
- noop
- prometheus
- runtime_
trace - Compatibility shim for the doctor command’s log-reading utilities.
- traits
- verbose
Structs§
- Agent
Turn Guard - Drop-safe lifecycle bracket for one logical agent turn.
- Broadcast
Hook Guard - Flush
Guard - Guard that flushes its observer on drop — the telemetry analogue of
AgentTurnGuard. Held for the lifetime of a short-lived agent invocation (today: the CLI one-shot,zeroclaw agent -m ...), whose process exits before the OTLP batch exporter / metricPeriodicReader’s background interval fires. Without this flush all buffered telemetry — including the never-endedgen_ai.agent.invokespan, which is only.end()’d insideObserver::flush— is lost when the runtime is torn down.
Enums§
- Observer
Event - Discrete events emitted by the agent runtime for observability.
Traits§
- Observer
- Core observability trait for recording agent runtime telemetry.
Functions§
- clear_
broadcast_ hook - Remove the broadcast hook, if any. Intended for tests and orderly shutdown.
- create_
observer - Factory: create the right observer from config
- set_
broadcast_ hook - Install a process-wide observer that will receive every event recorded
through observers built by
create_observer. Calling this again replaces the previous hook. - set_
scoped_ broadcast_ hook - Install a process-wide observer and return a guard that clears it on drop.