Documentation ¶
Index ¶
- func GinHTTPMiddleware(metrics *Metrics) gin.HandlerFunc
- type Configuration
- type Metrics
- func (s *Metrics) Counter(name string) tally.Counter
- func (s *Metrics) CounterWithTags(name string, tags map[string]string) tally.Counter
- func (s *Metrics) Gauge(name string) tally.Gauge
- func (s *Metrics) GaugeWithTags(name string, tags map[string]string) tally.Gauge
- func (s *Metrics) GetRootScope() tally.Scope
- func (s *Metrics) Histogram(name string, buckets tally.Buckets) tally.Histogram
- func (s *Metrics) HistogramWithTags(name string, buckets tally.Buckets, tags map[string]string) tally.Histogram
- func (s *Metrics) Timer(name string) tally.Timer
- func (s *Metrics) TimerWithTags(name string, tags map[string]string) tally.Timer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GinHTTPMiddleware ¶
func GinHTTPMiddleware(metrics *Metrics) gin.HandlerFunc
Types ¶
type Configuration ¶ added in v1.7.1
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
func New ¶
func New(lc fx.Lifecycle, log *zap.SugaredLogger, conf Configuration, app metadata.ApplicationMetadata) *Metrics
func (*Metrics) CounterWithTags ¶
func (*Metrics) GaugeWithTags ¶
func (*Metrics) GetRootScope ¶
func (s *Metrics) GetRootScope() tally.Scope
GetRootScope gets the root scope with the configured base tags
func (*Metrics) HistogramWithTags ¶
Click to show internal directories.
Click to hide internal directories.