Package io.opencensus.metrics
Class Metrics
- java.lang.Object
-
- io.opencensus.metrics.Metrics
-
@ExperimentalApi public final class Metrics extends java.lang.Object
Class for accessing the defaultMetricsComponent
.- Since:
- 0.17
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.logging.Logger
logger
private static MetricsComponent
metricsComponent
-
Constructor Summary
Constructors Modifier Constructor Description private
Metrics()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ExportComponent
getExportComponent()
Returns the globalExportComponent
.static MetricRegistry
getMetricRegistry()
Returns the globalMetricRegistry
.(package private) static MetricsComponent
loadMetricsComponent(java.lang.ClassLoader classLoader)
-
-
-
Field Detail
-
logger
private static final java.util.logging.Logger logger
-
metricsComponent
private static final MetricsComponent metricsComponent
-
-
Method Detail
-
getExportComponent
public static ExportComponent getExportComponent()
Returns the globalExportComponent
.- Returns:
- the global
ExportComponent
. - Since:
- 0.17
-
getMetricRegistry
public static MetricRegistry getMetricRegistry()
Returns the globalMetricRegistry
.This
MetricRegistry
is already added to the globalMetricProducerManager
.- Returns:
- the global
MetricRegistry
. - Since:
- 0.17
-
loadMetricsComponent
static MetricsComponent loadMetricsComponent(@Nullable java.lang.ClassLoader classLoader)
-
-