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.Builderbuilder()Returns a newEndSpanOptions.Builderwith default options.abstract booleanIftruethis is equivalent with calling theSampledSpanStore.registerSpanNamesForCollection(Collection)in advance for this span name.abstract StatusReturns the status.
-
Field Details
-
DEFAULT
The defaultEndSpanOptions.- Since:
- 0.5
-
-
Constructor Details
-
EndSpanOptions
EndSpanOptions()
-
-
Method Details
-
builder
Returns a newEndSpanOptions.Builderwith default options.- Returns:
- a new
Builderwith default options. - Since:
- 0.5
-
getSampleToLocalSpanStore
Iftruethis is equivalent with calling theSampledSpanStore.registerSpanNamesForCollection(Collection)in advance for this span name.- Returns:
trueif the name of theSpanshould be registered to theio.opencensus.trace.export.SampledSpanStore.- Since:
- 0.8
-
getStatus
Returns the status.If
nullthen theSpanwill record theStatusset viaSpan.setStatus(Status)or the defaultStatus.OKif no status was set.- Returns:
- the status.
- Since:
- 0.5
-