Class MetricReader

    • Field Detail

      • tracer

        private static final Tracer tracer
      • logger

        private static final java.util.logging.Logger logger
      • probabilitySampler

        private static final Sampler probabilitySampler
      • spanName

        private final java.lang.String spanName
    • Constructor Detail

      • MetricReader

        private MetricReader​(MetricProducerManager metricProducerManager,
                             java.lang.String spanName)
    • Method Detail

      • readAndExport

        public void readAndExport​(MetricExporter metricExporter)
        Reads the metrics from the MetricProducerManager and exports them to the metricExporter.
        Parameters:
        metricExporter - the exporter called to export the metrics read.
        Since:
        0.19
      • exceptionMessage

        private static java.lang.String exceptionMessage​(java.lang.Throwable e)