Class SimpleSpanProcessorBuilder
java.lang.Object
io.opentelemetry.sdk.trace.export.SimpleSpanProcessorBuilder
Builder class for
SimpleSpanProcessor
.- Since:
- 1.34.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns a newSimpleSpanProcessor
with the configuration of this builder.setExportUnsampledSpans
(boolean exportUnsampledSpans) Sets whether unsampled spans should be exported.
-
Field Details
-
spanExporter
-
exportUnsampledSpans
private boolean exportUnsampledSpans
-
-
Constructor Details
-
SimpleSpanProcessorBuilder
SimpleSpanProcessorBuilder(SpanExporter spanExporter)
-
-
Method Details
-
setExportUnsampledSpans
Sets whether unsampled spans should be exported. If unset, defaults to exporting only sampled spans. -
build
Returns a newSimpleSpanProcessor
with the configuration of this builder.- Returns:
- a new
SimpleSpanProcessor
.
-