Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ProtocolHTTP represents protocol name for HTTP requests. ProtocolHTTP = "http" // ProtocolGRPC represents protocol name for gRPC requests. ProtocolGRPC = "grpc" )
Variables ¶
This section is empty.
Functions ¶
func NewRequestDuration ¶
func NewRequestDuration() *prometheus.HistogramVec
NewRequestDuration configures and returns a new request_duration_seconds histogram.
Types ¶
type Recorder ¶
type Recorder interface { RequestDuration() *prometheus.HistogramVec HTTPHandler() http.Handler }
Recorder represents application metrics recorder.
func NewRecorder ¶
NewRecorder registers all metrics and returns a new metric recorder. nolint: exhaustivestruct
Click to show internal directories.
Click to hide internal directories.