Class MetricEntityState
java.lang.Object
com.linkedin.venice.stats.metrics.AsyncMetricEntityState
com.linkedin.venice.stats.metrics.MetricEntityState
- Direct Known Subclasses:
MetricEntityStateBase
,MetricEntityStateGeneric
,MetricEntityStateOneEnum
,MetricEntityStateThreeEnums
,MetricEntityStateTwoEnums
Abstract operational state of a non-async metric extended on top of
AsyncMetricEntityState
to provide common functionality for non-async metrics like record() which is not supported for
async metrics.
This abstract class should be extended by different MetricEntityStates like MetricEntityStateBase
to
pre-create/cache the Attributes
for different number/type of dimensions. check out the
classes extending this for more details. -
Nested Class Summary
Nested classes/interfaces inherited from class com.linkedin.venice.stats.metrics.AsyncMetricEntityState
AsyncMetricEntityState.TehutiSensorRegistrationFunction
-
Field Summary
Fields inherited from class com.linkedin.venice.stats.metrics.AsyncMetricEntityState
metricEntity, otelMetric, otelRepository, tehutiSensor
-
Constructor Summary
ConstructorsConstructorDescriptionMetricEntityState
(MetricEntity metricEntity, VeniceOpenTelemetryMetricsRepository otelRepository, Map<VeniceMetricsDimensions, String> baseDimensionsMap, AsyncMetricEntityState.TehutiSensorRegistrationFunction registerTehutiSensorFn, TehutiMetricNameEnum tehutiMetricNameEnum, List<io.tehuti.metrics.MeasurableStat> tehutiMetricStats) -
Method Summary
Modifier and TypeMethodDescriptionvoid
recordOtelMetric
(double value, io.opentelemetry.api.common.Attributes attributes) Record otel metricsMethods inherited from class com.linkedin.venice.stats.metrics.AsyncMetricEntityState
createMetric, setOtelMetric, setTehutiSensor
-
Constructor Details
-
MetricEntityState
public MetricEntityState(MetricEntity metricEntity, VeniceOpenTelemetryMetricsRepository otelRepository, Map<VeniceMetricsDimensions, String> baseDimensionsMap, AsyncMetricEntityState.TehutiSensorRegistrationFunction registerTehutiSensorFn, TehutiMetricNameEnum tehutiMetricNameEnum, List<io.tehuti.metrics.MeasurableStat> tehutiMetricStats)
-
-
Method Details
-
recordOtelMetric
public void recordOtelMetric(double value, io.opentelemetry.api.common.Attributes attributes) Record otel metrics
-