Class VeniceMetricsRepository

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class VeniceMetricsRepository
    extends io.tehuti.metrics.MetricsRepository
    implements java.io.Closeable
    Repository to hold both tehuti and OpenTelemetry metrics. This class extends MetricsRepository to keep the changes to a minimum and to avoid a breaking change.
    Once all components are migrated to use this class: make this class add MetricsRepository as a member variable and delegate all tehuti calls to it.
    • Method Detail

      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class io.tehuti.metrics.MetricsRepository
      • getVeniceMetricsRepository

        public static VeniceMetricsRepository getVeniceMetricsRepository​(java.lang.String serviceName,
                                                                         java.lang.String metricPrefix,
                                                                         java.util.Collection<MetricEntity> metricEntities,
                                                                         java.util.Map<java.lang.String,​java.lang.String> configs)