Class ExportComponent

java.lang.Object
io.opencensus.metrics.export.ExportComponent
Direct Known Subclasses:
ExportComponent.NoopExportComponent, ExportComponentImpl

@ExperimentalApi public abstract class ExportComponent extends Object
Class that holds the implementation instance for MetricProducerManager.

Unless otherwise noted all methods (on component) results are cacheable.

Since:
0.17
  • Constructor Details

    • ExportComponent

      public ExportComponent()
  • Method Details

    • newNoopExportComponent

      public static ExportComponent newNoopExportComponent()
      Returns the no-op implementation of the ExportComponent.
      Returns:
      the no-op implementation of the ExportComponent.
      Since:
      0.17
    • getMetricProducerManager

      public abstract MetricProducerManager getMetricProducerManager()
      Returns the global MetricProducerManager which can be used to register handlers to export all the recorded metrics.
      Returns:
      the implementation of the MetricExporter or no-op if no implementation linked in the binary.
      Since:
      0.17