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
- func Install(mux *http.ServeMux)
- func MemLogger(held uint) *memLogger
- func RegisterExtension(f handler)
- func RegisterHandler(p string, handler handler)
- func RegisterPage(name, path string, handler handler)
- func Serve(addr string) error
- func StdLogger(logger *log.Logger, held uint)
- func StdLoggerDefault(held uint)
Constants ¶
const (
BasePage = "/statusz"
)
Variables ¶
This section is empty.
Functions ¶
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 ¶
Serve creates a HTTP server on the address passed, and installs the statusz handler on it. This only returns when the server stops.
func StdLoggerDefault ¶
func StdLoggerDefault(held uint)
StdLoggerDefault attaches the memory logger to the default standard logger
Types ¶
This section is empty.