Documentation
¶
Index ¶
- type Service
- func (s *Service) Handler() http.Handler
- func (s *Service) Middleware(next http.Handler) http.Handler
- func (s *Service) ObserveBackgroundJob(worker, outcome string, duration time.Duration)
- func (s *Service) RegisterDatabase(db *sql.DB, name string) error
- func (s *Service) Registerer() prometheus.Registerer
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 (*Service) ObserveBackgroundJob ¶
ObserveBackgroundJob records the result and processing time of an asynchronous job.
func (*Service) RegisterDatabase ¶
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.
Click to show internal directories.
Click to hide internal directories.