public static final class SimpleSpanProcessor.Builder extends ConfigBuilder<SimpleSpanProcessor.Builder>
SimpleSpanProcessor.ConfigBuilder.NamingConvention| 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,
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.
|
getBooleanProperty, getDoubleProperty, getIntProperty, getLongProperty, getStringProperty, readEnvironmentVariables, readProperties, readSystemPropertiesprotected SimpleSpanProcessor.Builder fromConfigMap(Map<String,String> configMap, ConfigBuilder.NamingConvention namingConvention)
otel.ssp.export.sampled: to set whether only sampled spans should be exported.
fromConfigMap in class 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.