Documentation
¶
Overview ¶
Package obs holds cross-binary observability contracts. The loop-liveness family (epic 71 / 0c, #1319) is stamped by periodic loops in BOTH the agentd binary and the API binary — this package owns the constants AND the single registration, so the stamps can never drift and no binary can register the family twice (two promauto collectors under one name panic at init; 0c part 2 centralized what #1322's constants-only version left per-package).
Index ¶
Constants ¶
const ( LoopLivenessMetric = "llmsafespaces_loop_last_run_timestamp_seconds" LoopLivenessLabel = "loop" LoopLivenessHelp = "" /* 181-byte string literal not displayed */ )
The loop-liveness family contract: every periodic loop stamps the unix timestamp of its last COMPLETED pass under its own loop label. A loop whose series goes stale has died silently; alerting on staleness is gated until L3/L4 are green (epic-71 wave plan).
const ( LoopReconcileWatchdog = "reconcile_watchdog" // agentd: the #1311 reconcile watchdog (both pod modes) LoopOutboxParkedSweeper = "outbox_parked_sweeper" // API: the #1316 parked-error sweeper (its Run loop only) LoopCanaryProbe = "canary_probe" // API: the #1312 canary probe runner (0c) )
Loop names — the family's vocabulary. New loops append here; the label value is the staleness rule's key.
Variables ¶
This section is empty.
Functions ¶
func LoopLastRun ¶
func LoopLastRun() *prometheus.GaugeVec
LoopLastRun exposes the family gauge for tests (per-pass-advance pins and scrape-completeness rows). Production code stamps; it does not read.
func StampLoopLastRun ¶
func StampLoopLastRun(loop string)
StampLoopLastRun records a periodic loop's last COMPLETED pass. Call from the loop itself, at end-of-pass only — direct/one-shot callers must not refresh it (a dead loop must be allowed to look stale).
Types ¶
This section is empty.