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

Method __enter__

prometheus_client/context_managers.py:40–41  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

38 self._gauge = gauge
39
40 def __enter__(self):
41 self._gauge.inc()
42
43 def __exit__(self, typ, value, traceback):
44 self._gauge.dec()

Callers

nothing calls this directly

Calls 1

incMethod · 0.45

Tested by

no test coverage detected