Skip to main content

Module runtime_trace

Module runtime_trace 

Source
Expand description

Compatibility shim for the doctor command’s log-reading utilities.

The legacy positional-arg record_event shim was retired in favor of direct zeroclaw_log::record! invocations carrying typed attribution via attribution_span!. This module survives only as the doctor command’s path-resolution + load surface; new emission code goes directly to zeroclaw_log::record!.

Structs§

LogFilter
Filter parameters for load_page. Each field is independent; an event must match ALL provided constraints to be included.
LogPage
One page returned by load_page.
RuntimeTraceEvent
One row in the canonical log stream.

Functions§

find_event_by_id
Lookup a single event by id.
init_from_config
Initialize log persistence from the observability config.
load_events
Load a page of events. Replaces the old load_events shape with a thin wrapper around the new paginated reader. The legacy event_filter (single action match) and contains (substring) args map straight onto the new LogFilter fields.
resolve_trace_path
Resolve the configured log path (used by the doctor command).