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

Method _child_samples

prometheus_client/metrics.py:360–367  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

358 return ExceptionCounter(self, exception)
359
360 def _child_samples(self) -> Iterable[Sample]:
361 sample = Sample('_total', {}, self._value.get(), None, self._value.get_exemplar())
362 if _use_created:
363 return (
364 sample,
365 Sample('_created', {}, self._created, None, None)
366 )
367 return (sample,)
368
369
370class Gauge(MetricWrapperBase):

Callers

nothing calls this directly

Calls 3

SampleClass · 0.85
getMethod · 0.45
get_exemplarMethod · 0.45

Tested by

no test coverage detected