Interface MetricExporterFactory


  • public interface MetricExporterFactory
    A MetricExporterFactory acts as the bootstrap for a MetricExporter implementation. An exporter must register its implementation of a MetricExporterFactory through the Java SPI framework.
    • Method Detail

      • fromConfig

        io.opentelemetry.sdk.metrics.export.MetricExporter fromConfig​(Properties config)
        Creates an instance of a MetricExporter based on the provided configuration.
        Parameters:
        config - The configuration
        Returns:
        An implementation of a MetricExporter
      • getNames

        Set<String> getNames()
        Returns names of metric exporters supported by this factory.

        Multiple names are useful for enabling a pair of span and metric exporters using the same name, while still having separate names for enabling them individually.

        Returns:
        The exporter names supported by this factory