Package io.opencensus.metrics
Class MetricsComponent
java.lang.Object
io.opencensus.metrics.MetricsComponent
- Direct Known Subclasses:
MetricsComponent.NoopMetricsComponent
,MetricsComponentImplBase
Class that holds the implementation instance for
ExportComponent
.- Since:
- 0.17
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ExportComponent
Returns theExportComponent
with the provided implementation.abstract MetricRegistry
Returns theMetricRegistry
with the provided implementation.(package private) static MetricsComponent
Returns an instance that contains no-op implementations for all the instances.
-
Constructor Details
-
MetricsComponent
public MetricsComponent()
-
-
Method Details
-
getExportComponent
Returns theExportComponent
with the provided implementation. If no implementation is provided then no-op implementations will be used.- Returns:
- the
ExportComponent
implementation. - Since:
- 0.17
-
getMetricRegistry
Returns theMetricRegistry
with the provided implementation.- Returns:
- the
MetricRegistry
implementation. - Since:
- 0.17
-
newNoopMetricsComponent
Returns an instance that contains no-op implementations for all the instances.- Returns:
- an instance that contains no-op implementations for all the instances.
-