Class OpenTelemetryDataPointTestUtils

java.lang.Object
com.linkedin.venice.utils.OpenTelemetryDataPointTestUtils

public abstract class OpenTelemetryDataPointTestUtils extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static io.opentelemetry.sdk.metrics.data.ExponentialHistogramPointData
    getExponentialHistogramPointData(Collection<io.opentelemetry.sdk.metrics.data.MetricData> metricsData, String metricName, String prefix)
     
    static io.opentelemetry.sdk.metrics.data.HistogramPointData
    getHistogramPointData(Collection<io.opentelemetry.sdk.metrics.data.MetricData> metricsData, String metricName, String prefix)
     
    static io.opentelemetry.sdk.metrics.data.LongPointData
    getLongPointData(Collection<io.opentelemetry.sdk.metrics.data.MetricData> metricsData, String metricName, String prefix)
     
    static void
    validateExponentialHistogramPointData(io.opentelemetry.sdk.metrics.data.ExponentialHistogramPointData histogramPointData, double expectedMin, double expectedMax, long expectedCount, double expectedSum, io.opentelemetry.api.common.Attributes expectedAttributes)
     
    static void
    validateHistogramPointData(io.opentelemetry.sdk.metrics.data.HistogramPointData histogramPointData, double expectedMin, double expectedMax, long expectedCount, double expectedSum, io.opentelemetry.api.common.Attributes expectedAttributes)
     
    static void
    validateLongPointData(io.opentelemetry.sdk.metrics.data.LongPointData longPointData, long expectedValue, io.opentelemetry.api.common.Attributes expectedAttributes)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OpenTelemetryDataPointTestUtils

      public OpenTelemetryDataPointTestUtils()
  • Method Details

    • getLongPointData

      public static io.opentelemetry.sdk.metrics.data.LongPointData getLongPointData(Collection<io.opentelemetry.sdk.metrics.data.MetricData> metricsData, String metricName, String prefix)
    • getExponentialHistogramPointData

      public static io.opentelemetry.sdk.metrics.data.ExponentialHistogramPointData getExponentialHistogramPointData(Collection<io.opentelemetry.sdk.metrics.data.MetricData> metricsData, String metricName, String prefix)
    • getHistogramPointData

      public static io.opentelemetry.sdk.metrics.data.HistogramPointData getHistogramPointData(Collection<io.opentelemetry.sdk.metrics.data.MetricData> metricsData, String metricName, String prefix)
    • validateLongPointData

      public static void validateLongPointData(io.opentelemetry.sdk.metrics.data.LongPointData longPointData, long expectedValue, io.opentelemetry.api.common.Attributes expectedAttributes)
    • validateExponentialHistogramPointData

      public static void validateExponentialHistogramPointData(io.opentelemetry.sdk.metrics.data.ExponentialHistogramPointData histogramPointData, double expectedMin, double expectedMax, long expectedCount, double expectedSum, io.opentelemetry.api.common.Attributes expectedAttributes)
    • validateHistogramPointData

      public static void validateHistogramPointData(io.opentelemetry.sdk.metrics.data.HistogramPointData histogramPointData, double expectedMin, double expectedMax, long expectedCount, double expectedSum, io.opentelemetry.api.common.Attributes expectedAttributes)