Class AsyncMetricEntityStateBase
java.lang.Object
com.linkedin.venice.stats.metrics.AsyncMetricEntityState
com.linkedin.venice.stats.metrics.AsyncMetricEntityStateBase
This version of
AsyncMetricEntityState
is used when the metric entity has no dynamic dimensions.
The base Attributes
that are common for all invocation of this instance are passed in the
constructor and used during async callback recording.-
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic AsyncMetricEntityStateBase
create
(MetricEntity metricEntity, VeniceOpenTelemetryMetricsRepository otelRepository, AsyncMetricEntityState.TehutiSensorRegistrationFunction registerTehutiSensorFn, TehutiMetricNameEnum tehutiMetricNameEnum, List<io.tehuti.metrics.MeasurableStat> tehutiMetricStats, Map<VeniceMetricsDimensions, String> baseDimensionsMap, io.opentelemetry.api.common.Attributes baseAttributes, LongSupplier asyncCallback) Overloaded Factory method for constructor with Tehuti parameters and async callbackstatic AsyncMetricEntityStateBase
create
(MetricEntity metricEntity, VeniceOpenTelemetryMetricsRepository otelRepository, Map<VeniceMetricsDimensions, String> baseDimensionsMap, io.opentelemetry.api.common.Attributes baseAttributes, LongSupplier asyncCallback) Factory method to keep the API consistent with other subclasses likeMetricEntityStateOneEnum
Methods inherited from class com.linkedin.venice.stats.metrics.AsyncMetricEntityState
createMetric, setOtelMetric, setTehutiSensor
-
Method Details
-
create
public static AsyncMetricEntityStateBase create(MetricEntity metricEntity, VeniceOpenTelemetryMetricsRepository otelRepository, Map<VeniceMetricsDimensions, String> baseDimensionsMap, @Nonnull io.opentelemetry.api.common.Attributes baseAttributes, @Nonnull LongSupplier asyncCallback) Factory method to keep the API consistent with other subclasses likeMetricEntityStateOneEnum
-
create
public static AsyncMetricEntityStateBase create(MetricEntity metricEntity, VeniceOpenTelemetryMetricsRepository otelRepository, AsyncMetricEntityState.TehutiSensorRegistrationFunction registerTehutiSensorFn, TehutiMetricNameEnum tehutiMetricNameEnum, List<io.tehuti.metrics.MeasurableStat> tehutiMetricStats, Map<VeniceMetricsDimensions, String> baseDimensionsMap, @Nonnull io.opentelemetry.api.common.Attributes baseAttributes, @Nonnull LongSupplier asyncCallback) Overloaded Factory method for constructor with Tehuti parameters and async callback
-