Interface SpanProcessors

All Superinterfaces:
Iterable<io.opentelemetry.sdk.trace.SpanProcessor>
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 SpanProcessors extends Iterable<io.opentelemetry.sdk.trace.SpanProcessor>
A collection of span processors.
Since:
3.2.0
Author:
Moritz Halbritter
  • Method Summary

    Modifier and Type
    Method
    Description
    default Iterator<io.opentelemetry.sdk.trace.SpanProcessor>
     
    List<io.opentelemetry.sdk.trace.SpanProcessor>
    Returns the list of span processors.
    of(io.opentelemetry.sdk.trace.SpanProcessor... spanProcessors)
    Constructs a SpanProcessors instance with the given span processors.
    of(Collection<? extends io.opentelemetry.sdk.trace.SpanProcessor> spanProcessors)
    Constructs a SpanProcessors instance with the given list of span processors.
    default Spliterator<io.opentelemetry.sdk.trace.SpanProcessor>
     

    Methods inherited from interface java.lang.Iterable

    forEach
  • Method Details

    • list

      List<io.opentelemetry.sdk.trace.SpanProcessor> list()
      Returns the list of span processors.
      Returns:
      the list of span processors
    • iterator

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

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

      static SpanProcessors of(io.opentelemetry.sdk.trace.SpanProcessor... spanProcessors)
      Constructs a SpanProcessors instance with the given span processors.
      Parameters:
      spanProcessors - the span processors
      Returns:
      the constructed SpanProcessors instance
    • of

      static SpanProcessors of(Collection<? extends io.opentelemetry.sdk.trace.SpanProcessor> spanProcessors)
      Constructs a SpanProcessors instance with the given list of span processors.
      Parameters:
      spanProcessors - the list of span processors
      Returns:
      the constructed SpanProcessors instance