Interface ConfigurableSpanExporterProvider


public interface ConfigurableSpanExporterProvider
A service provider interface (SPI) for providing additional exporters that can be used with the autoconfigured SDK. If the otel.traces.exporter property contains a value equal to what is returned by getName(), the exporter returned by createExporter(ConfigProperties) will be enabled and added to the SDK.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.opentelemetry.sdk.trace.export.SpanExporter
    Returns a SpanExporter that can be registered to OpenTelemetry by providing the property value specified by getName().
    Returns the name of this exporter, which can be specified with the otel.traces.exporter property to enable it.
  • Method Details

    • createExporter

      io.opentelemetry.sdk.trace.export.SpanExporter createExporter(ConfigProperties config)
      Returns a SpanExporter that can be registered to OpenTelemetry by providing the property value specified by getName().
    • getName

      String getName()
      Returns the name of this exporter, which can be specified with the otel.traces.exporter property to enable it. The name returned should NOT be the same as any other exporter name. If the name does conflict with another exporter name, the resulting behavior is undefined and it is explicitly unspecified which exporter will actually be used.