All Superinterfaces:
Iterable<io.opentelemetry.sdk.trace.export.SpanExporter>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface SpanExporters extends Iterable<io.opentelemetry.sdk.trace.export.SpanExporter>
A collection of span exporters.
Since:
3.2.0
Author:
Moritz Halbritter
  • Method Summary

    Modifier and Type
    Method
    Description
    default Iterator<io.opentelemetry.sdk.trace.export.SpanExporter>
     
    List<io.opentelemetry.sdk.trace.export.SpanExporter>
    Returns the list of span exporters.
    of(io.opentelemetry.sdk.trace.export.SpanExporter... spanExporters)
    Constructs a SpanExporters instance with the given span exporters.
    of(Collection<? extends io.opentelemetry.sdk.trace.export.SpanExporter> spanExporters)
    Constructs a SpanExporters instance with the given list of span exporters.
    default Spliterator<io.opentelemetry.sdk.trace.export.SpanExporter>
     

    Methods inherited from interface java.lang.Iterable

    forEach
  • Method Details

    • list

      List<io.opentelemetry.sdk.trace.export.SpanExporter> list()
      Returns the list of span exporters.
      Returns:
      the list of span exporters
    • iterator

      default Iterator<io.opentelemetry.sdk.trace.export.SpanExporter> iterator()
      Specified by:
      iterator in interface Iterable<io.opentelemetry.sdk.trace.export.SpanExporter>
    • spliterator

      default Spliterator<io.opentelemetry.sdk.trace.export.SpanExporter> spliterator()
      Specified by:
      spliterator in interface Iterable<io.opentelemetry.sdk.trace.export.SpanExporter>
    • of

      static SpanExporters of(io.opentelemetry.sdk.trace.export.SpanExporter... spanExporters)
      Constructs a SpanExporters instance with the given span exporters.
      Parameters:
      spanExporters - the span exporters
      Returns:
      the constructed SpanExporters instance
    • of

      static SpanExporters of(Collection<? extends io.opentelemetry.sdk.trace.export.SpanExporter> spanExporters)
      Constructs a SpanExporters instance with the given list of span exporters.
      Parameters:
      spanExporters - the list of span exporters
      Returns:
      the constructed SpanExporters instance