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 Loggerprivate static final MetricsComponent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExportComponentReturns the globalExportComponent.static MetricRegistryReturns the globalMetricRegistry.(package private) static MetricsComponentloadMetricsComponent(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
MetricRegistryis already added to the globalMetricProducerManager.- Returns:
- the global
MetricRegistry. - Since:
- 0.17
-
loadMetricsComponent
-