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 aEndSpanOptionswith the desired settings.setSampleToLocalSpanStore(boolean sampleToLocalSpanStore) If set totruethis 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.BuilderIf set totruethis 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:
setSampleToLocalSpanStorein classEndSpanOptions.Builder- Returns:
- this.
-
setStatus
Description copied from class:EndSpanOptions.BuilderSets the status for theSpan.If set, this will override the status set via
Span.setStatus(Status).- Specified by:
setStatusin classEndSpanOptions.Builder- Parameters:
status- the status.- Returns:
- this.
-
build
Description copied from class:EndSpanOptions.BuilderBuilds and returns aEndSpanOptionswith the desired settings.- Specified by:
buildin classEndSpanOptions.Builder- Returns:
- a
EndSpanOptionswith the desired settings.
-