Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/prometheus/client_python
/ TextCollector
Class
TextCollector
tests/openmetrics/test_parser.py:720–722 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
718
families = list(text_string_to_metric_families(text))
719
720
class
TextCollector:
721
def
collect(self):
722
return
families
723
724
registry = CollectorRegistry()
725
registry.register(TextCollector())
Callers
1
test_roundtrip
Method · 0.70
Calls
no outgoing calls
Tested by
1
test_roundtrip
Method · 0.56