    def track_inprogress(self) -> InprogressTracker:
        """Track inprogress blocks of code or functions.

        Can be used as a function decorator or context manager.
        Increments the gauge when the code is entered,
        and decrements when it is exited.
        """
        self._raise_if_not_observable()
        return InprogressTracker(self)
Track inprogress blocks of code or functions.

Can be used as a function decorator or context manager.
Increments the gauge when the code is entered,
and decrements when it is exited.
prometheus_client/metrics.py