symfonic.observability.ports¶
ports ¶
Runtime-service-facing port for capability-owned instrumentation state.
reset_active_recorder ¶
Reset the contextvar to whatever value it held before the matching
:func:set_active_recorder call.
set_active_recorder ¶
Install recorder as the active SpanRecorder for the current task.
Returns the ContextVar token; pass it to :func:reset_active_recorder
when the run scope ends. The OTel tracer's start_run_span context
manager owns the set/reset pair.