mirror of
https://github.com/joelhooks/joelclaw.git
synced 2026-09-19 01:24:04 +08:00
1.2 KiB
1.2 KiB
Observability
Canonical notes for joelclaw telemetry, OTEL events, and triage semantics.
Health summary semantics
packages/system-bus/src/inngest/functions/check-system-health.ts emits system.health.checked after each health pass.
levelreflects whether the run observed any degradation at all.info= nothing degradedwarn= one or more health surfaces degraded
successis narrower thanlevel.success: falsemeans a critical health surface degraded (Redis,Inngest,Worker,Gateway,Typesense,Agent Secrets) or the agent-dispatch canary is unhealthy.success: truewithlevel: warnis valid when degradation is non-critical only, such asNFS Mounts.
This split is deliberate. O11y triage escalates failed operations, so non-critical degradations must stay visible without looking like a failed health-check operation.
Metadata contract
system.health.checked metadata should include:
degradedCountcriticalDegradedCountnonCriticalDegradedCountcriticalDegradedServicesnonCriticalDegradedServices- full
servicesinventory with per-servicecriticalflag
That keeps dashboards honest while preventing noisy tier-3 escalations from warn-only, non-critical drift.