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 AsyncMetricEntityStateBasecreate(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, DoubleSupplier asyncDoubleCallback) Factory method for joint Tehuti+OTel ASYNC_DOUBLE_GAUGE with DoubleSupplier callbackstatic AsyncMetricEntityStateBasecreate(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) Factory method for joint Tehuti+OTel ASYNC_GAUGE with LongSupplier callbackstatic AsyncMetricEntityStateBasecreate(MetricEntity metricEntity, VeniceOpenTelemetryMetricsRepository otelRepository, Map<VeniceMetricsDimensions, String> baseDimensionsMap, io.opentelemetry.api.common.Attributes baseAttributes, DoubleSupplier asyncDoubleCallback) Factory method for OTel-only ASYNC_DOUBLE_GAUGE with DoubleSupplier callbackstatic AsyncMetricEntityStateBasecreate(MetricEntity metricEntity, VeniceOpenTelemetryMetricsRepository otelRepository, Map<VeniceMetricsDimensions, String> baseDimensionsMap, io.opentelemetry.api.common.Attributes baseAttributes, LongSupplier asyncCallback) Factory method for OTel-only ASYNC_GAUGE with LongSupplier callbackMethods inherited from class com.linkedin.venice.stats.metrics.AsyncMetricEntityState
getTehutiSensor, setOtelMetric, setTehutiSensor
-
Method Details
-
create
public static AsyncMetricEntityStateBase create(MetricEntity metricEntity, VeniceOpenTelemetryMetricsRepository otelRepository, Map<VeniceMetricsDimensions, String> baseDimensionsMap, io.opentelemetry.api.common.Attributes baseAttributes, @Nonnull LongSupplier asyncCallback) Factory method for OTel-only ASYNC_GAUGE with LongSupplier callback -
create
public static 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, @Nonnull LongSupplier asyncCallback) Factory method for joint Tehuti+OTel ASYNC_GAUGE with LongSupplier callback -
create
public static AsyncMetricEntityStateBase create(MetricEntity metricEntity, VeniceOpenTelemetryMetricsRepository otelRepository, Map<VeniceMetricsDimensions, String> baseDimensionsMap, io.opentelemetry.api.common.Attributes baseAttributes, @Nonnull DoubleSupplier asyncDoubleCallback) Factory method for OTel-only ASYNC_DOUBLE_GAUGE with DoubleSupplier callback -
create
public static 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, @Nonnull DoubleSupplier asyncDoubleCallback) Factory method for joint Tehuti+OTel ASYNC_DOUBLE_GAUGE with DoubleSupplier callback
-