MCPcopy Index your code
hub / github.com/prometheus/client_python / _metric_init

Method _metric_init

prometheus_client/metrics.py:281–287  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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
290class Counter(MetricWrapperBase):

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected