Package io.opencensus.metrics
Class MetricsComponent.NoopMetricsComponent
java.lang.Object
io.opencensus.metrics.MetricsComponent
io.opencensus.metrics.MetricsComponent.NoopMetricsComponent
- Enclosing class:
MetricsComponent
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ExportComponent
private static final MetricRegistry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns theExportComponent
with the provided implementation.Returns theMetricRegistry
with the provided implementation.Methods inherited from class io.opencensus.metrics.MetricsComponent
newNoopMetricsComponent
-
Field Details
-
EXPORT_COMPONENT
-
METRIC_REGISTRY
-
-
Constructor Details
-
NoopMetricsComponent
private NoopMetricsComponent()
-
-
Method Details
-
getExportComponent
Description copied from class:MetricsComponent
Returns theExportComponent
with the provided implementation. If no implementation is provided then no-op implementations will be used.- Specified by:
getExportComponent
in classMetricsComponent
- Returns:
- the
ExportComponent
implementation.
-
getMetricRegistry
Description copied from class:MetricsComponent
Returns theMetricRegistry
with the provided implementation.- Specified by:
getMetricRegistry
in classMetricsComponent
- Returns:
- the
MetricRegistry
implementation.
-