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

Function _get_use_created

prometheus_client/metrics.py:44–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42
43
44def _get_use_created() -> bool:
45 return os.environ.get("PROMETHEUS_DISABLE_CREATED_SERIES", 'False').lower() not in ('true', '1', 't')
46
47
48_use_created = _get_use_created()

Callers 3

setUpMethod · 0.90
tearDownMethod · 0.90
metrics.pyFile · 0.85

Calls 1

getMethod · 0.45

Tested by 2

setUpMethod · 0.72
tearDownMethod · 0.72