Package io.opencensus.trace
Enum Span.Options
- All Implemented Interfaces:
Serializable
,Comparable<Span.Options>
- Enclosing class:
Span
Span
options. These options are NOT propagated to child spans. These options determine
features such as whether a Span
should record any annotations or events.- Since:
- 0.5
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis option is set if the Span is part of a sampled distributed trace ORSpanBuilder.setRecordEvents(boolean)
was called with true. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Span.Options
Returns the enum constant of this type with the specified name.static Span.Options[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
RECORD_EVENTS
This option is set if the Span is part of a sampled distributed trace ORSpanBuilder.setRecordEvents(boolean)
was called with true.- Since:
- 0.5
-
-
Constructor Details
-
Options
private Options()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-