Package io.opencensus.trace
Class AutoValue_EndSpanOptions.Builder
java.lang.Object
io.opencensus.trace.EndSpanOptions.Builder
io.opencensus.trace.AutoValue_EndSpanOptions.Builder
- Enclosing class:
AutoValue_EndSpanOptions
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds and returns aEndSpanOptions
with the desired settings.setSampleToLocalSpanStore
(boolean sampleToLocalSpanStore) If set totrue
this is equivalent with calling theSampledSpanStore.registerSpanNamesForCollection(Collection)
in advance for the given span name.Sets the status for theSpan
.
-
Field Details
-
sampleToLocalSpanStore
-
status
-
-
Constructor Details
-
Builder
Builder()
-
-
Method Details
-
setSampleToLocalSpanStore
Description copied from class:EndSpanOptions.Builder
If set totrue
this is equivalent with calling theSampledSpanStore.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.- Specified by:
setSampleToLocalSpanStore
in classEndSpanOptions.Builder
- Returns:
- this.
-
setStatus
Description copied from class:EndSpanOptions.Builder
Sets the status for theSpan
.If set, this will override the status set via
Span.setStatus(Status)
.- Specified by:
setStatus
in classEndSpanOptions.Builder
- Parameters:
status
- the status.- Returns:
- this.
-
build
Description copied from class:EndSpanOptions.Builder
Builds and returns aEndSpanOptions
with the desired settings.- Specified by:
build
in classEndSpanOptions.Builder
- Returns:
- a
EndSpanOptions
with the desired settings.
-