Documentation ¶
Index ¶
- func LatencyMiddleware(duration metrics.Histogram, methodName string) endpoint.Middleware
- func Logging(logger log.Logger, endpointName string) endpoint.Middleware
- func Prometheus(methodName string) endpoint.Middleware
- func RequestFrequency(frequency metrics.Counter, methodName string) endpoint.Middleware
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LatencyMiddleware ¶
func LatencyMiddleware(duration metrics.Histogram, methodName string) endpoint.Middleware
LatencyMiddleware is an endpoint middleware which observes the request latency in a histogram
func Prometheus ¶
func Prometheus(methodName string) endpoint.Middleware
Prometheus adds basic RED metrics on all endpoints. The transport layer (gRPC) should also have metrics attached and will then take care of monitoring grpc endpoints including their status.
func RequestFrequency ¶
func RequestFrequency(frequency metrics.Counter, methodName string) endpoint.Middleware
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.