ray.util.metrics.Counter.inc#

Counter.inc(value: int | float = 1.0, tags: Dict[str, str] = None)[source]#

Increment the counter by value (defaults to 1).

Tags passed in will take precedence over the metric’s default tags.

Parameters:
  • value (int, float) – Value to increment the counter by (default=1).

  • tags (Dict[str, str]) – Tags to set or override for this counter.