Register registers a new Collector to be included in metrics collection. It returns an error if the descriptors provided by the Collector are invalid or if they — in combination with descriptors of already registered Collectors — do not fulfill the consistency and uniqueness criteria described in th
(Collector)
| 113 | // inconsistent metrics on collection. (This would lead to scrape |
| 114 | // errors.) |
| 115 | Register(Collector) error |
| 116 | // MustRegister works like Register but registers any number of |
| 117 | // Collectors and panics upon the first registration that causes an |
| 118 | // error. |
no outgoing calls