Expand description
tracing-subscriber Layer that captures record! emissions and
attribution_span! spans, assembling alias-bound LogEvents and
routing them to JSONL persistence, the broadcast hook, and the
Observer bridge.
Two recognized span/event shapes:
attribution_span!(thing)— opens a span withtarget = "zeroclaw_log_internal_attribution"carryingzc_role_family,zc_role_type,zc_attribution_field,zc_composite_prefix,zc_default_category, andzc_alias. The layer stashes aZeroclawAttributionsnapshot in the span’s extensions; no LogEvent is emitted for the span itself.record!(LEVEL, Event::new(...), "msg")— emits an event withtarget = "zeroclaw_log_event"carryingzc_name,zc_action,zc_outcome,zc_category,zc_attrs,zc_has_duration,zc_duration_ms, andmessage. The layer walks the span scope leaf→root, merges every attribution snapshot it finds, and writes a fully populatedLogEvent.