Class MetricsComponent

java.lang.Object
io.opencensus.metrics.MetricsComponent
Direct Known Subclasses:
MetricsComponent.NoopMetricsComponent, MetricsComponentImplBase

@ExperimentalApi public abstract class MetricsComponent extends Object
Class that holds the implementation instance for ExportComponent.
Since:
0.17
  • Constructor Details

    • MetricsComponent

      public MetricsComponent()
  • Method Details

    • getExportComponent

      public abstract ExportComponent getExportComponent()
      Returns the ExportComponent with the provided implementation. If no implementation is provided then no-op implementations will be used.
      Returns:
      the ExportComponent implementation.
      Since:
      0.17
    • getMetricRegistry

      public abstract MetricRegistry getMetricRegistry()
      Returns the MetricRegistry with the provided implementation.
      Returns:
      the MetricRegistry implementation.
      Since:
      0.17
    • newNoopMetricsComponent

      static MetricsComponent 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.