public static final class SimpleSpanProcessor.Builder extends io.opentelemetry.sdk.common.export.ConfigBuilder<SimpleSpanProcessor.Builder>
SimpleSpanProcessor.| Modifier and Type | Method and Description |
|---|---|
SimpleSpanProcessor |
build()
Returns a new
SimpleSpanProcessor that converts spans to proto and forwards them to
the given spanExporter. |
protected SimpleSpanProcessor.Builder |
fromConfigMap(Map<String,String> configMap,
io.opentelemetry.sdk.common.export.ConfigBuilder.NamingConvention namingConvention)
Sets the configuration values from the given configuration map for only the available keys.
|
SimpleSpanProcessor.Builder |
setExportOnlySampled(boolean exportOnlySampled)
Set whether only sampled spans should be exported.
|
protected SimpleSpanProcessor.Builder fromConfigMap(Map<String,String> configMap, io.opentelemetry.sdk.common.export.ConfigBuilder.NamingConvention namingConvention)
otel.ssp.export.sampled: to set whether only sampled spans should be exported.
fromConfigMap in class io.opentelemetry.sdk.common.export.ConfigBuilder<SimpleSpanProcessor.Builder>configMap - Map holding the configuration values.public SimpleSpanProcessor.Builder setExportOnlySampled(boolean exportOnlySampled)
Default value is true.
exportOnlySampled - if true report only sampled spans.public SimpleSpanProcessor build()
SimpleSpanProcessor that converts spans to proto and forwards them to
the given spanExporter.SimpleSpanProcessor.NullPointerException - if the spanExporter is null.