Documentation
¶
Overview ¶
Package observability is a true leaf (stdlib-only) holding cross-cutting counters that lower layers (scheduler) must record without importing handler/shared or app. Resolves package-boundaries §5.11: scheduler sat below app in the dependency chain (app → handler/proxy → scheduler), so it could not import either app or handler/shared to bump the DB-connection error metric. This leaf has no internal imports, breaking the cycle.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DBConnErrorsTotal ¶
func DBConnErrorsTotal() int64
DBConnErrorsTotal returns the current counter value (Prometheus exposition / tests).
func RecordDBConnError ¶
func RecordDBConnError()
RecordDBConnError increments the DB connection-budget / open error counter.
func ResetDBConnErrorsForTest ¶
func ResetDBConnErrorsForTest()
ResetDBConnErrorsForTest zeroes the counter for deterministic tests.
Types ¶
This section is empty.