Class OTelSpanExporterFactory

java.lang.Object
org.opensearch.telemetry.tracing.exporter.OTelSpanExporterFactory

public class OTelSpanExporterFactory extends Object
Factory class to create the SpanExporter instance.
  • Method Details

    • create

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