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 SpanProcessors
of
(io.opentelemetry.sdk.trace.SpanProcessor... spanProcessors) Constructs aSpanProcessors
instance with the givenspan processors
.static SpanProcessors
of
(Collection<? extends io.opentelemetry.sdk.trace.SpanProcessor> spanProcessors) Constructs aSpanProcessors
instance 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:
spliterator
in interfaceIterable<io.opentelemetry.sdk.trace.SpanProcessor>
-
of
Constructs aSpanProcessors
instance with the givenspan processors
.- Parameters:
spanProcessors
- the span processors- Returns:
- the constructed
SpanProcessors
instance
-
of
static SpanProcessors of(Collection<? extends io.opentelemetry.sdk.trace.SpanProcessor> spanProcessors) Constructs aSpanProcessors
instance with the given list ofspan processors
.- Parameters:
spanProcessors
- the list of span processors- Returns:
- the constructed
SpanProcessors
instance
-