Class MetricsComponent.NoopMetricsComponent
java.lang.Object
io.opencensus.metrics.MetricsComponent
io.opencensus.metrics.MetricsComponent.NoopMetricsComponent
- Enclosing class:
MetricsComponent
- Since:
- 0.17
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ExportComponentprivate static final MetricRegistry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns theExportComponentwith the provided implementation.Returns theMetricRegistrywith the provided implementation.Methods inherited from class MetricsComponent
newNoopMetricsComponent
-
Field Details
-
EXPORT_COMPONENT
-
METRIC_REGISTRY
-
-
Constructor Details
-
NoopMetricsComponent
private NoopMetricsComponent()
-
-
Method Details
-
getExportComponent
Description copied from class:MetricsComponentReturns theExportComponentwith the provided implementation. If no implementation is provided then no-op implementations will be used.- Specified by:
getExportComponentin classMetricsComponent- Returns:
- the
ExportComponentimplementation.
-
getMetricRegistry
Description copied from class:MetricsComponentReturns theMetricRegistrywith the provided implementation.- Specified by:
getMetricRegistryin classMetricsComponent- Returns:
- the
MetricRegistryimplementation.
-