Skip to content

solutions_backend.observability

Low-cardinality Backend metrics without payload or canonical-ID labels.

Functions

metrics_response

metrics_response() -> Response

Render the process registry directly at the exact /metrics path.

record_agents

record_agents(outcome: str, semantic_decider: str, duration_seconds: float) -> None

Record downstream workflow latency with bounded outcome/provenance labels.

record_classification

record_classification(outcome: str, source_kind: str, config_variant: str, duration_seconds: float) -> None

Record one bounded operation outcome without business identifiers.

record_context

record_context(outcome: str, duration_seconds: float) -> None

Record deterministic context construction latency.

record_dependencies

record_dependencies(database: bool, migrations: bool, agents: bool) -> None

Project the cached readiness receipt into one bounded dependency gauge.

record_identity

record_identity(outcome: str) -> None

Record stable/stale/error identity admission checks.

record_replay

record_replay(state: str) -> None

Record durable replay or active-lease reuse without business identifiers.

record_result

record_result(disposition: str, semantic_decider: str, config_variant: str) -> None

Record one admitted business route using bounded enum/config labels.