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

Method _child_samples

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

Source from the content-addressed store, hash-verified

563 return Timer(self, 'observe')
564
565 def _child_samples(self) -> Iterable[Sample]:
566 samples = [
567 Sample('_count', {}, self._count.get(), None, None),
568 Sample('_sum', {}, self._sum.get(), None, None),
569 ]
570 if _use_created:
571 samples.append(Sample('_created', {}, self._created, None, None))
572 return tuple(samples)
573
574
575class Histogram(MetricWrapperBase):

Callers

nothing calls this directly

Calls 2

SampleClass · 0.85
getMethod · 0.45

Tested by

no test coverage detected