public static final class SimpleSpansProcessor.Builder extends Object
SimpleSpansProcessor.| Modifier and Type | Method and Description |
|---|---|
SimpleSpansProcessor |
build()
Returns a new
SimpleSpansProcessor that converts spans to proto and forwards them to
the given spanExporter. |
SimpleSpansProcessor.Builder |
reportOnlySampled(boolean sampled)
Set whether only sampled spans should be reported.
|
public SimpleSpansProcessor.Builder reportOnlySampled(boolean sampled)
sampled - report only sampled spans.public SimpleSpansProcessor build()
SimpleSpansProcessor that converts spans to proto and forwards them to
the given spanExporter.SimpleSpansProcessor.NullPointerException - if the spanExporter is null.