statusz

package module
v0.0.0-...-9fe5a40 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

README

statusz

Go status display

Documentation

Overview

Package statusz implements a per-process status page showing runtime values and statistics. Custom handlers can be added to display extra information specific to the application

Implements a page handler for starting and stopping the internal tracing flight recorder, and for downloading the captured traces

Index

Constants

View Source
const (
	BasePage = "/statusz"
)

Variables

This section is empty.

Functions

func Install

func Install(mux *http.ServeMux)

Install adds statusz handling to this mux

func MemLogger

func MemLogger(held uint) *memLogger

MemLogger creates (if necessary) and provides a Writer that copies logs to the circular buffer.

func RegisterExtension

func RegisterExtension(f handler)

RegisterExtension adds a custom extension to the statusz page It is invoked after the standard statusz page

func RegisterHandler

func RegisterHandler(p string, handler handler)

RegisterHandler registers a handler for a URL path under /statusz

func RegisterPage

func RegisterPage(name, path string, handler handler)

RegisterPage adds a named link to the statusz page

func Serve

func Serve(addr string) error

Serve creates a HTTP server on the address passed, and installs the statusz handler on it. This only returns when the server stops.

func StdLogger

func StdLogger(logger *log.Logger, held uint)

StdLogger attaches the memory logger to a logger.

func StdLoggerDefault

func StdLoggerDefault(held uint)

StdLoggerDefault attaches the memory logger to the default standard logger

Types

This section is empty.

Directories

Path Synopsis
Package slog provides a log/slog handler that saves logs into a circular memory buffer.
Package slog provides a log/slog handler that saves logs into a circular memory buffer.

Jump to

Keyboard shortcuts

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