metricMap is a helper for metricVec and shared between differently curried metricVecs.
| 315 | // metricMap is a helper for metricVec and shared between differently curried |
| 316 | // metricVecs. |
| 317 | type metricMap struct { |
| 318 | mtx sync.RWMutex // Protects metrics. |
| 319 | metrics map[uint64][]metricWithLabelValues |
| 320 | desc *Desc |
| 321 | newMetric func(labelValues ...string) Metric |
| 322 | } |
| 323 | |
| 324 | // Describe implements Collector. It will send exactly one Desc to the provided |
| 325 | // channel. |
nothing calls this directly
no outgoing calls
no test coverage detected