Interface SpanProcessorConfig

All Superinterfaces:
Prototype.Api
All Known Subinterfaces:
BatchSpanProcessorConfig
All Known Implementing Classes:
BatchSpanProcessorConfig.BuilderBase.BatchSpanProcessorConfigImpl, SpanProcessorConfig.BuilderBase.SpanProcessorConfigImpl

public interface SpanProcessorConfig extends Prototype.Api
Generic configuration for a SpanProcessor, linked to a SpanExporter by its name in the configuration.
See Also:
  • Method Details

    • builder

      static SpanProcessorConfig.Builder builder()
      Create a new fluent API builder to customize configuration.
      Returns:
      a new builder
    • builder

      Create a new fluent API builder from an existing instance.
      Parameters:
      instance - an existing instance used as a base for the builder
      Returns:
      a builder based on an instance
    • create

      static SpanProcessorConfig create(Config config)
      Create a new instance from configuration.
      Parameters:
      config - used to configure the new instance
      Returns:
      a new instance configured from configuration
    • create

      @Deprecated static SpanProcessorConfig create(Config config)
      Create a new instance from configuration.
      Parameters:
      config - used to configure the new instance
      Returns:
      a new instance configured from configuration
    • exporters

      List<String> exporters()
      Name(s) of the span exporter(s) this span processor should use; specifying no names uses all configured exporters (or if no exporters are configured, the default OpenTelemetry exporter(s)).

      Each name must be the name of one of the configured OpenTelemetryTracingConfig.exporterConfigs().

      Returns:
      span exporter name
    • type

      Span processor type.
      Returns:
      span processor type