ray.util.metrics.Histogram.observe#

Histogram.observe(value: int | float, tags: Dict[str, str] = None)[source]#

Observe a given value and add it to the appropriate bucket.

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

Parameters:
  • value (int, float) – Value to set the gauge to.

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