Documentation
¶
Index ¶
Constants ¶
View Source
const ( MetricTotal = "worker_handler_execution_total" MetricDuration = "worker_handler_execution_duration_seconds" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
func (*Metrics) Cooler ¶
Cooler only forwards the cooler of the wrapped handler implementation. That means the metrics handler does not have its own cooler setting, but only acts as proxy for the underlying handler.
func (*Metrics) Ensure ¶
Ensure tracks the start time of its own execution and runs the business logic of the wrapped worker handler. The wrapped business logic is instrumented for runtime latency and error rates. Note that Ensure emits debug logs about the internal worker handler execution. Any error returned originates from the underlying handler implementation.
Click to show internal directories.
Click to hide internal directories.