Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/prometheus/client_python
/ collect
Method
collect
tests/test_exposition.py:463–465 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
461
self.values = values
462
463
def
collect(self):
464
self.metric_family.add_metric([], *self.values)
465
return
[self.metric_family]
466
467
468
def
_expect_metric_exception(registry, expected_error):
Callers
9
setUp
Method · 0.45
test_working
Method · 0.45
test_empty
Method · 0.45
test_collect
Method · 0.45
test_collect_histogram_ordering
Method · 0.45
test_restrict
Method · 0.45
test_collect_preserves_help
Method · 0.45
test_child_name_is_built_once_with_namespace_subsystem_unit
Method · 0.45
assertLabels
Method · 0.45
Calls
1
add_metric
Method · 0.45
Tested by
no test coverage detected