Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
Sample
Class · 0.85
f
Function · 0.50
Tested by
no test coverage detected