observability

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 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 adapts application-owned HTTP handlers into Kernel actions for standard health and metrics endpoints.

The adapters only bind routes; they do not wrap or alter handler responses.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HealthActions

func HealthActions(livenessHandler, readinessHandler http.Handler) []action.AnyAction

HealthActions returns the standard liveness and readiness actions. The supplied handlers remain responsible for response status, headers, and body. Liveness is exposed at GET /healthz; readiness is exposed at GET /readyz and the backwards-compatible GET /health alias.

func MetricsAction

func MetricsAction(name, path string, handler http.Handler, tags ...string) action.AnyAction

MetricsAction returns a system action that serves the supplied handler at one GET endpoint. The handler is mounted directly so Prometheus content negotiation and exposition output are preserved.

Types

This section is empty.

Jump to

Keyboard shortcuts

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