latent.observability¶
latent.observability — event sinks for guardrail and agent telemetry.
Moved from latent.guardrails.sinks to decouple observability from the
guardrails package. The old import paths still work but emit a
DeprecationWarning.
Sink implementations (StructlogSink, OpenTelemetrySink, WebhookSink) are
loaded lazily via latent._lazy.lazy_getattr — each pulls heavy optional
deps (structlog, opentelemetry, requests) and there's no reason to pay the
import cost just because someone touched latent.observability.
Classes¶
EventSink¶
Protocol for guardrail event sinks.
NoOpSink¶
Sink that discards all events. Useful to suppress the default StructlogSink.