Enum SamplingDecision
- All Implemented Interfaces:
Serializable
,Comparable<SamplingDecision>
,java.lang.constant.Constable
A decision on whether a span should be recorded, recorded and sampled or dropped.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSpan is dropped.Span is recorded and sampled.Span is recorded only. -
Method Summary
Modifier and TypeMethodDescriptionstatic SamplingDecision
Returns the enum constant of this type with the specified name.static SamplingDecision[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DROP
Span is dropped. The resulting span will be completely no-op. -
RECORD_ONLY
Span is recorded only. The resulting span will record all information like timings and attributes but will not be exported. Downstream parent-based samplers will not sample the span. -
RECORD_AND_SAMPLE
Span is recorded and sampled. The resulting span will record all information like timings and attributes and will be exported.
-
-
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
-