ray.util.metrics.Counter.inc#
- Counter.inc(value: int | float = 1.0, tags: Dict[str, str] | None = None)[source]#
Increment the counter by
value(defaults to 1).Tags passed in will take precedence over the metric’s default tags.
- Parameters:
value – Value to increment the counter by (default=1).
tags – Tags to set or override for this counter.