Package io.opencensus.trace
Class EndSpanOptions
java.lang.Object
io.opencensus.trace.EndSpanOptions
- Direct Known Subclasses:
AutoValue_EndSpanOptions
A class that enables overriding the default values used when ending a
Span
. Allows
overriding the status
.- Since:
- 0.5
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EndSpanOptions.Builder
builder()
Returns a newEndSpanOptions.Builder
with default options.abstract boolean
Iftrue
this is equivalent with calling theSampledSpanStore.registerSpanNamesForCollection(Collection)
in advance for this span name.abstract Status
Returns the status.
-
Field Details
-
DEFAULT
The defaultEndSpanOptions
.- Since:
- 0.5
-
-
Constructor Details
-
EndSpanOptions
EndSpanOptions()
-
-
Method Details
-
builder
Returns a newEndSpanOptions.Builder
with default options.- Returns:
- a new
Builder
with default options. - Since:
- 0.5
-
getSampleToLocalSpanStore
Iftrue
this is equivalent with calling theSampledSpanStore.registerSpanNamesForCollection(Collection)
in advance for this span name.- Returns:
true
if the name of theSpan
should be registered to theio.opencensus.trace.export.SampledSpanStore
.- Since:
- 0.8
-
getStatus
Returns the status.If
null
then theSpan
will record theStatus
set viaSpan.setStatus(Status)
or the defaultStatus.OK
if no status was set.- Returns:
- the status.
- Since:
- 0.5
-