Documentation
¶
Index ¶
Constants ¶
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) Active ¶ added in v0.7.0
Active only forwards the scheduler primitive of the wrapped handler implementation. That means the metrics handler does not have its own activation setting, but only acts as proxy for the underlying handler.
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, not from the metrics collection process.