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:
- 4.0.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 SpanExportersof(io.opentelemetry.sdk.trace.export.SpanExporter... spanExporters) Constructs aSpanExportersinstance with the givenspan exporters.static SpanExportersof(Collection<? extends io.opentelemetry.sdk.trace.export.SpanExporter> spanExporters) Constructs aSpanExportersinstance 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:
spliteratorin interfaceIterable<io.opentelemetry.sdk.trace.export.SpanExporter>
-
of
Constructs aSpanExportersinstance with the givenspan exporters.- Parameters:
spanExporters- the span exporters- Returns:
- the constructed
SpanExportersinstance
-
of
static SpanExporters of(Collection<? extends io.opentelemetry.sdk.trace.export.SpanExporter> spanExporters) Constructs aSpanExportersinstance with the given list ofspan exporters.- Parameters:
spanExporters- the list of span exporters- Returns:
- the constructed
SpanExportersinstance
-