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