Class OTelMetricsExporterFactory

java.lang.Object
org.opensearch.telemetry.metrics.exporter.OTelMetricsExporterFactory

public class OTelMetricsExporterFactory extends Object
Factory class to create the MetricExporter instance.
  • Method Details

    • create

      public static io.opentelemetry.sdk.metrics.export.MetricExporter create(Settings settings)
      Creates the MetricExporter instances based on the OTEL_METRIC_EXPORTER_CLASS_SETTING value. As of now, it expects the MetricExporter implementations to have a create factory method to instantiate the MetricExporter.
      Parameters:
      settings - settings.
      Returns:
      MetricExporter instance.