Initialize the metric object as a child, i.e. when it has labels (if any) set. This is factored as a separate function to allow for deferred initialization.
(self)
| 279 | raise NotImplementedError('_child_samples() must be implemented by %r' % self) |
| 280 | |
| 281 | def _metric_init(self): # pragma: no cover |
| 282 | """ |
| 283 | Initialize the metric object as a child, i.e. when it has labels (if any) set. |
| 284 | |
| 285 | This is factored as a separate function to allow for deferred initialization. |
| 286 | """ |
| 287 | raise NotImplementedError('_metric_init() must be implemented by %r' % self) |
| 288 | |
| 289 | |
| 290 | class Counter(MetricWrapperBase): |