Package io.opencensus.trace
Class TraceOptions.Builder
java.lang.Object
io.opencensus.trace.TraceOptions.Builder
- Enclosing class:
TraceOptions
Builder class for
TraceOptions
.- Since:
- 0.5
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds and returns aTraceOptions
with the desired options.Deprecated.setIsSampled
(boolean isSampled) Sets the sampling bit in the options.
-
Field Details
-
options
private byte options
-
-
Constructor Details
-
Builder
private Builder(byte options)
-
-
Method Details
-
setIsSampled
Deprecated.UseBuilder.setIsSampled(true)
.Sets the sampling bit in the options to true.- Returns:
- this.
- Since:
- 0.5
-
setIsSampled
Sets the sampling bit in the options.- Parameters:
isSampled
- the sampling bit.- Returns:
- this.
- Since:
- 0.7
-
build
Builds and returns aTraceOptions
with the desired options.- Returns:
- a
TraceOptions
with the desired options. - Since:
- 0.5
-
Builder.setIsSampled(true)
.