package
Version:
v0.0.0-...-ffd9c73
Opens a new window with list of versions in this module.
Published: Mar 29, 2024
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package metrics implements a metrics middleware for an HTTP server
that records metrics data for Prometheus.
type Metrics interface {
RequestCountInc(routePattern string, statusCode int)
ResponseBytesCountAdd(routePattern string, statusCode int, bytesWritten int)
InflightRequestsGaugeAdd(addition int)
ResponseTimeHistogramObserve(routePattern string, statusCode int, duration time.Duration)
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.