public abstract static class EndSpanOptions.Builder extends Object
EndSpanOptions.| Modifier and Type | Method and Description |
|---|---|
abstract EndSpanOptions |
build()
Builds and returns a
EndSpanOptions with the desired settings. |
abstract EndSpanOptions.Builder |
setSampleToLocalSpanStore(boolean sampleToLocalSpanStore)
If set to
true this is equivalent with calling the SampledSpanStore.registerSpanNamesForCollection(Collection) in
advance for the given span name. |
abstract EndSpanOptions.Builder |
setStatus(Status status)
Sets the status for the
Span. |
public abstract EndSpanOptions.Builder setStatus(Status status)
Span.
If set, this will override the status set via Span.setStatus(Status).
status - the status.@ExperimentalApi public abstract EndSpanOptions.Builder setSampleToLocalSpanStore(boolean sampleToLocalSpanStore)
true this is equivalent with calling the SampledSpanStore.registerSpanNamesForCollection(Collection) in
advance for the given span name.
WARNING: setting this option to a randomly generated span name can OOM your process because the library will save samples for each name.
It is strongly recommended to use the SampledSpanStore.registerSpanNamesForCollection(Collection) API
instead.
public abstract EndSpanOptions build()
EndSpanOptions with the desired settings.EndSpanOptions with the desired settings.