Collect is called by the Prometheus registry when collecting metrics. The implementation sends each collected metric via the provided channel and returns once the last metric has been sent. The descriptor of each sent metric is one of those returned by Describe (unless the Collector is unchecked, se
(chan<- Metric)
| 60 | // of total performance of rendering all registered metrics. Ideally, |
| 61 | // Collector implementations support concurrent readers. |
| 62 | Collect(chan<- Metric) |
| 63 | } |
| 64 | |
| 65 | // DescribeByCollect is a helper to implement the Describe method of a custom |
no outgoing calls