Class MetricEntityState

java.lang.Object
com.linkedin.venice.stats.metrics.MetricEntityState

public class MetricEntityState extends Object
Operational state of a metric. It holds:
1. A MetricEntity
2. One OpenTelemetry (Otel) Instrument
3. Zero or one (out of zero for new metrics or more for existing metrics) Tehuti sensors for this Otel Metric.
One Otel instrument can cover multiple Tehuti sensors through the use of dimensions. Ideally, this class should represent a one-to-many mapping between an Otel instrument and Tehuti sensors. However, to simplify lookup during runtime, this class holds one Otel instrument and one Tehuti sensor. If an Otel instrument corresponds to multiple Tehuti sensors, there will be multiple MetricEntityState objects, each containing the same Otel instrument but different Tehuti sensors.