Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequestDurationInstrumentor ¶
func RequestDurationInstrumentor(duration kitmetrics.Histogram) endpoint.Middleware
RequestDurationInstrumentor returns an endpoint middleware that records the duration of each invocation to the passed histogram. The middleware adds a single field: "success", which is "true" if no error is returned, and "false" otherwise.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.