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 TypeMethodDescriptiondefault Iterator<io.opentelemetry.sdk.trace.SpanProcessor>iterator()List<io.opentelemetry.sdk.trace.SpanProcessor>list()Returns the list ofspan processors.static SpanProcessorsof(io.opentelemetry.sdk.trace.SpanProcessor... spanProcessors) Constructs aSpanProcessorsinstance with the givenspan processors.static SpanProcessorsof(Collection<? extends io.opentelemetry.sdk.trace.SpanProcessor> spanProcessors) Constructs aSpanProcessorsinstance with the given list ofspan processors.default Spliterator<io.opentelemetry.sdk.trace.SpanProcessor>
-
Method Details
-
list
List<io.opentelemetry.sdk.trace.SpanProcessor> list()Returns the list ofspan processors.- Returns:
- the list of span processors
-
iterator
-
spliterator
- Specified by:
spliteratorin interfaceIterable<io.opentelemetry.sdk.trace.SpanProcessor>
-
of
Constructs aSpanProcessorsinstance with the givenspan processors.- Parameters:
spanProcessors- the span processors- Returns:
- the constructed
SpanProcessorsinstance
-
of
static SpanProcessors of(Collection<? extends io.opentelemetry.sdk.trace.SpanProcessor> spanProcessors) Constructs aSpanProcessorsinstance with the given list ofspan processors.- Parameters:
spanProcessors- the list of span processors- Returns:
- the constructed
SpanProcessorsinstance
-