Interface SpanExporters
- 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 TypeMethodDescriptiondefault Iterator<io.opentelemetry.sdk.trace.export.SpanExporter>
iterator()
List<io.opentelemetry.sdk.trace.export.SpanExporter>
list()
Returns the list ofspan exporters
.static SpanExporters
of
(io.opentelemetry.sdk.trace.export.SpanExporter... spanExporters) Constructs aSpanExporters
instance with the givenspan exporters
.static SpanExporters
of
(Collection<? extends io.opentelemetry.sdk.trace.export.SpanExporter> spanExporters) Constructs aSpanExporters
instance with the given list ofspan exporters
.default Spliterator<io.opentelemetry.sdk.trace.export.SpanExporter>
-
Method Details
-
list
List<io.opentelemetry.sdk.trace.export.SpanExporter> list()Returns the list ofspan exporters
.- Returns:
- the list of span exporters
-
iterator
-
spliterator
- Specified by:
spliterator
in interfaceIterable<io.opentelemetry.sdk.trace.export.SpanExporter>
-
of
Constructs aSpanExporters
instance with the givenspan 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 aSpanExporters
instance with the given list ofspan exporters
.- Parameters:
spanExporters
- the list of span exporters- Returns:
- the constructed
SpanExporters
instance
-