Package com.linkedin.venice.stats
Class VeniceOpenTelemetryMetricsRepository
java.lang.Object
com.linkedin.venice.stats.VeniceOpenTelemetryMetricsRepository
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final io.tehuti.utils.RedundantLogFilter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
io.opentelemetry.api.metrics.ObservableLongGauge
createAsyncLongGauge
(MetricEntity metricEntity, LongSupplier asyncCallback, io.opentelemetry.api.common.Attributes attributes) Asynchronous gauge that will call the callback during metrics collection.io.opentelemetry.api.common.Attributes
createAttributes
(MetricEntity metricEntity, Map<VeniceMetricsDimensions, String> baseDimensionsMap, VeniceDimensionInterface... additionalDimensionEnums) io.opentelemetry.api.common.Attributes
createAttributes
(MetricEntity metricEntity, Map<VeniceMetricsDimensions, String> baseDimensionsMap, Map<VeniceMetricsDimensions, String> additionalDimensionsMap) io.opentelemetry.api.metrics.DoubleHistogram
createDoubleHistogram
(MetricEntity metricEntity) createInstrument
(MetricEntity metricEntity) createInstrument
(MetricEntity metricEntity, LongSupplier asyncCallback, io.opentelemetry.api.common.Attributes attributes) io.opentelemetry.api.metrics.LongCounter
createLongCounter
(MetricEntity metricEntity) io.opentelemetry.api.metrics.LongGauge
createLongGuage
(MetricEntity metricEntity) boolean
getDimensionName
(VeniceMetricsDimensions dimension) void
recordFailureMetric
(MetricEntity metricEntity, Exception e) void
recordFailureMetric
(MetricEntity metricEntity, String error)
-
Field Details
-
REDUNDANT_LOG_FILTER
public static final io.tehuti.utils.RedundantLogFilter REDUNDANT_LOG_FILTER -
DEFAULT_METRIC_PREFIX
- See Also:
-
-
Constructor Details
-
VeniceOpenTelemetryMetricsRepository
-
-
Method Details
-
createDoubleHistogram
public io.opentelemetry.api.metrics.DoubleHistogram createDoubleHistogram(MetricEntity metricEntity) -
createLongCounter
-
createLongGuage
-
createAsyncLongGauge
public io.opentelemetry.api.metrics.ObservableLongGauge createAsyncLongGauge(MetricEntity metricEntity, @Nonnull LongSupplier asyncCallback, @Nonnull io.opentelemetry.api.common.Attributes attributes) Asynchronous gauge that will call the callback during metrics collection. This is useful for metrics that are not updated frequently or require expensive computation. For now, the attributes are passed in as a parameter while creating the gauge, ie, onlyMetricEntityStateBase
is supported for now. -
createInstrument
public Object createInstrument(MetricEntity metricEntity, LongSupplier asyncCallback, io.opentelemetry.api.common.Attributes attributes) -
createInstrument
-
getDimensionName
-
createAttributes
public io.opentelemetry.api.common.Attributes createAttributes(MetricEntity metricEntity, Map<VeniceMetricsDimensions, String> baseDimensionsMap, VeniceDimensionInterface... additionalDimensionEnums) -
createAttributes
public io.opentelemetry.api.common.Attributes createAttributes(MetricEntity metricEntity, Map<VeniceMetricsDimensions, String> baseDimensionsMap, Map<VeniceMetricsDimensions, String> additionalDimensionsMap) -
close
public void close() -
recordFailureMetric
-
recordFailureMetric
-
emitOpenTelemetryMetrics
public boolean emitOpenTelemetryMetrics() -
getMetricsConfig
-
getMetricFormat
-
getRecordFailureMetric
-