Class Metrics
java.lang.Object
org.elasticsearch.xpack.esql.telemetry.Metrics
Class encapsulating the metrics collected for ESQL
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfailed(QueryMetric metric) Increments the "failed" counter for a metricvoidinc(FeatureMetric metric) voidincFunctionMetric(Class<?> functionType) voidrecordTook(long tookMillis) stats()voidtotal(QueryMetric metric) Increments the "total" counter for a metric This method should be called only once per query.
-
Field Details
-
QUERIES_PREFIX
- See Also:
-
FEATURES_PREFIX
- See Also:
-
FUNC_PREFIX
- See Also:
-
TOOK_PREFIX
- See Also:
-
-
Constructor Details
-
Metrics
-
-
Method Details
-
total
Increments the "total" counter for a metric This method should be called only once per query. -
failed
Increments the "failed" counter for a metric -
inc
-
incFunctionMetric
-
recordTook
public void recordTook(long tookMillis) -
stats
-