Documentation
¶
Overview ¶
Package obs holds runeward's observability wiring: structured logging and Prometheus metrics. It has no dependency on the control plane, so any package can record metrics without creating an import cycle.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IncSandboxCreated ¶
func IncSandboxCreated()
IncSandboxCreated bumps the sandbox-creation counter.
func MetricsHandler ¶
MetricsHandler serves the Prometheus exposition endpoint.
func NewLogger ¶
NewLogger builds the structured logger for the operator-facing services. $RUNEWARD_LOG_FORMAT selects "json" or "text" (default text); $RUNEWARD_LOG_LEVEL selects debug/info/warn/error (default info). Logs go to stderr.
func RecordAction ¶
RecordAction records one governed action outcome. durationMS <= 0 (denied or non-executed actions) skips the duration observation.
func SetBuildInfo ¶
func SetBuildInfo(version string)
SetBuildInfo publishes the running version as a build_info gauge.
Types ¶
This section is empty.