Describe implements Collector.
(ch chan<- *Desc)
| 561 | |
| 562 | // Describe implements Collector. |
| 563 | func (r *Registry) Describe(ch chan<- *Desc) { |
| 564 | r.mtx.RLock() |
| 565 | defer r.mtx.RUnlock() |
| 566 | |
| 567 | // Only report the checked Collectors; unchecked collectors don't report any |
| 568 | // Desc. |
| 569 | for _, c := range r.collectorsByID { |
| 570 | c.Describe(ch) |
| 571 | } |
| 572 | } |
| 573 | |
| 574 | // Collect implements Collector. |
| 575 | func (r *Registry) Collect(ch chan<- Metric) { |