observability

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(version string) *Service

func (*Service) Handler

func (s *Service) Handler() http.Handler

func (*Service) Middleware

func (s *Service) Middleware(next http.Handler) http.Handler

func (*Service) ObserveBackgroundJob

func (s *Service) ObserveBackgroundJob(worker, outcome string, duration time.Duration)

ObserveBackgroundJob records the result and processing time of an asynchronous job.

func (*Service) RegisterDatabase

func (s *Service) RegisterDatabase(db *sql.DB, name string) error

RegisterDatabase exposes database/sql pool saturation and connection churn.

func (*Service) Registerer

func (s *Service) Registerer() prometheus.Registerer

Registerer allows application modules to register additional collectors without relying on Prometheus's global registry.

Jump to

Keyboard shortcuts

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