Package io.opencensus.metrics
Class Metrics
java.lang.Object
io.opencensus.metrics.Metrics
Class for accessing the default
MetricsComponent
.- Since:
- 0.17
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Logger
private static final MetricsComponent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExportComponent
Returns the globalExportComponent
.static MetricRegistry
Returns the globalMetricRegistry
.(package private) static MetricsComponent
loadMetricsComponent
(ClassLoader classLoader)
-
Field Details
-
logger
-
metricsComponent
-
-
Constructor Details
-
Metrics
private Metrics()
-
-
Method Details
-
getExportComponent
Returns the globalExportComponent
.- Returns:
- the global
ExportComponent
. - Since:
- 0.17
-
getMetricRegistry
Returns the globalMetricRegistry
.This
MetricRegistry
is already added to the globalMetricProducerManager
.- Returns:
- the global
MetricRegistry
. - Since:
- 0.17
-
loadMetricsComponent
-