metrics

package
v0.0.0-...-a024992 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(port int, registry *prometheus.Registry) *http.Server

Types

type Metrics

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

func NewMetrics

func NewMetrics() *Metrics

func (*Metrics) IncRequestsFailed

func (m *Metrics) IncRequestsFailed()

func (*Metrics) IncRequestsReceived

func (m *Metrics) IncRequestsReceived()

func (*Metrics) ObserveHandlingLatency

func (m *Metrics) ObserveHandlingLatency(ctx context.Context, dur time.Duration)

func (*Metrics) Registry

func (m *Metrics) Registry() (reg *prometheus.Registry, err error)

Jump to

Keyboard shortcuts

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