Register registers metrics.
()
| 128 | |
| 129 | // Register registers metrics. |
| 130 | func (c *JobCollector) Register() { |
| 131 | prometheus.MustRegister(c.start) |
| 132 | prometheus.MustRegister(c.end) |
| 133 | prometheus.MustRegister(c.duration) |
| 134 | prometheus.MustRegister(c.started) |
| 135 | prometheus.MustRegister(c.completed) |
| 136 | } |
| 137 | |
| 138 | // Before collects for the upcoming request. |
| 139 | func (c *JobCollector) Before(_ context.Context, method string, start time.Time) { |
nothing calls this directly
no test coverage detected