Skip to main content

Module obs

Module obs 

Source

Functions§

is_sensitive_key
True when a key name looks credential-bearing under the ab.obs policy.
obs_context
Build the observability context tuple (trace_id, run_id, agent_id, agent_name).
obs_line
Render a single structured observability log line in the fixed key=value format used by the ab.obs logging convention.
process_agent_id
Returns a process-scoped agent ID that is generated once and reused for the lifetime of the process. The semantic scope of agent_id is “one agent-block execution”, which is coarser than run_id (per-call). Both currently collapse to the same generated value in single-run invocations, but the conceptual distinction is preserved so that future deployments can evolve the two scopes independently (e.g. long-running daemon vs. per-request).
sanitize_url
Strip credentials and volatile components from a URL so it is safe to log.