@Immutable public abstract class EndSpanOptions extends Object
Span
. Allows
overriding the status
.Modifier and Type | Class and Description |
---|---|
static class |
EndSpanOptions.Builder
Builder class for
EndSpanOptions . |
Modifier and Type | Field and Description |
---|---|
static EndSpanOptions |
DEFAULT
The default
EndSpanOptions . |
Modifier and Type | Method and Description |
---|---|
static EndSpanOptions.Builder |
builder()
Returns a new
EndSpanOptions.Builder with default options. |
abstract boolean |
getSampleToLocalSpanStore()
If
true this is equivalent with calling the SampledSpanStore.registerSpanNamesForCollection(Collection) in
advance for this span name. |
abstract Status |
getStatus()
Returns the status.
|
public static final EndSpanOptions DEFAULT
EndSpanOptions
.public static EndSpanOptions.Builder builder()
EndSpanOptions.Builder
with default options.Builder
with default options.@ExperimentalApi public abstract boolean getSampleToLocalSpanStore()
true
this is equivalent with calling the SampledSpanStore.registerSpanNamesForCollection(Collection)
in
advance for this span name.true
if the name of the Span
should be registered to the io.opencensus.trace.export.SampledSpanStore
.