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

Method samples

prometheus_client/metrics.py:496–497  ·  view source on GitHub ↗
(_: Gauge)

Source from the content-addressed store, hash-verified

494 self._raise_if_not_observable()
495
496 def samples(_: Gauge) -> Iterable[Sample]:
497 return (Sample('', {}, float(f()), None, None),)
498
499 self._child_samples = types.MethodType(samples, self) # type: ignore
500

Callers

nothing calls this directly

Calls 2

SampleClass · 0.85
fFunction · 0.50

Tested by

no test coverage detected