java.lang.Object
org.elasticsearch.xpack.esql.telemetry.Metrics

public class Metrics extends Object
Class encapsulating the metrics collected for ESQL
  • Field Details

  • Constructor Details

  • Method Details

    • total

      public void total(QueryMetric metric)
      Increments the "total" counter for a metric This method should be called only once per query.
    • failed

      public void failed(QueryMetric metric)
      Increments the "failed" counter for a metric
    • inc

      public void inc(FeatureMetric metric)
    • incFunctionMetric

      public void incFunctionMetric(Class<?> functionType)
    • recordTook

      public void recordTook(long tookMillis)
    • stats

      public Counters stats()