class_docstr: A cumulative metric that is monotonically increasing.
  
  This corresponds to Prometheus' counter metric:
  https://prometheus.io/docs/concepts/metric_types/#counter
  
  Args:
      name: Name of the metric.
      description: Description of the metric.
      tag_keys: Tag keys of the metric.
class_docstr_tok: ["A","cumulative","metric","that","is","monotonically","increasing",".","This","corresponds","to","Prometheus","'","counter","metric",":","https",":","\/\/prometheus.io\/docs\/concepts\/metric_types\/","#","counter","Args",":","name",":","Name","of","the","metric",".","description",":","Description","of","the","metric",".","tag_keys",":","Tag","keys","of","the","metric","."]
docstr: Increment the counter by `value` (defaults to 1).
  
  Tags passed in will take precedence over the metric's default tags.
  
  Args:
      value(int, float): Value to increment the counter by (default=1).
      tags(Dict[str, str]): Tags to set or override for this counter.
docstr_tok: ["Increment","the","counter","by","`","value","`","(","defaults","to","1",")",".","Tags","passed","in","will","take","precedence","over","the","metric","'s","default","tags",".","Args",":","value","(","int",",","float",")",":","Value","to","increment","the","counter","by","(","default=1",")",".","tags","(","Dict","[","str",",","str","]",")",":","Tags","to","set","or","override","for","this","counter","."]
code: def inc(
      self, value: Union[int, float] = 1.0, tags: Dict[str, str] = None
  ):
      """Increment the counter by `value` (defaults to 1).
  
      Tags passed in will take precedence over the metric's default tags.
  
      Args:
          value(int, float): Value to increment the counter by (default=1).
          tags(Dict[str, str]): Tags to set or override for this counter.
      """
      if not isinstance(value, (int, float)):
          raise TypeError(
              f"value must be int or float, got {type(value)}."
          )
      if value <= 0:
          raise ValueError(f"value must be >0, got {value}")
  
      self.record(value, tags=tags, _internal=True)
  
imports: import logging
  from typing import Dict, Any, List, Optional, Tuple, Union
  from ray._raylet import Sum, Histogram, Gauge
  from ray.util.annotations import DeveloperAPI
label_desc: Use image node_id 3 for calling the Counter obj's underlying member method code with example usage: obj.inc(value, tags) without return types