Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/prometheus/client_python
/ labels
Method
labels
prometheus_client/context_managers.py:72–73 ·
view source on GitHub ↗
(self, *args, **kw)
Source
from the content-addressed store, hash-verified
70
callback(duration)
71
72
def
labels(self, *args, **kw):
73
self._metric = self._metric.labels(*args, **kw)
74
75
def
__call__(self, f:
"F"
) ->
"F"
:
76
def
wrapped(func, *args, **kwargs):
Callers
15
__init__.py
File · 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_merge_no_accumulate
Method · 0.45
test_remove_clear_warning
Method · 0.45
test_child_name_is_built_once_with_namespace_subsystem_unit
Method · 0.45
test_child_preserves_parent_context_for_subclasses
Method · 0.45
test_labels
Method · 0.45
test_labels_tags
Method · 0.45
test_prefix
Method · 0.45
Calls
no outgoing calls
Tested by
15
test_collect
Method · 0.36
test_collect_histogram_ordering
Method · 0.36
test_restrict
Method · 0.36
test_collect_preserves_help
Method · 0.36
test_merge_no_accumulate
Method · 0.36
test_remove_clear_warning
Method · 0.36
test_child_name_is_built_once_with_namespace_subsystem_unit
Method · 0.36
test_child_preserves_parent_context_for_subclasses
Method · 0.36
test_labels
Method · 0.36
test_labels_tags
Method · 0.36
test_prefix
Method · 0.36
test_prefix_tags
Method · 0.36