Increment gauge by the given amount.
(self, amount: float = 1)
| 442 | ) |
| 443 | |
| 444 | def inc(self, amount: float = 1) -> None: |
| 445 | """Increment gauge by the given amount.""" |
| 446 | if self._is_most_recent: |
| 447 | raise RuntimeError("inc must not be used with the mostrecent mode") |
| 448 | self._raise_if_not_observable() |
| 449 | self._value.inc(amount) |
| 450 | |
| 451 | def dec(self, amount: float = 1) -> None: |
| 452 | """Decrement gauge by the given amount.""" |