observability

package
v0.16.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2026 License: MIT Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL