Enum Class OpenTelemetryPluginCfgDefn.TracerSampler
java.lang.Object
java.lang.Enum<OpenTelemetryPluginCfgDefn.TracerSampler>
org.forgerock.opendj.server.config.meta.OpenTelemetryPluginCfgDefn.TracerSampler
- All Implemented Interfaces:
Serializable
,Comparable<OpenTelemetryPluginCfgDefn.TracerSampler>
,java.lang.constant.Constable
- Enclosing class:
- OpenTelemetryPluginCfgDefn
public static enum OpenTelemetryPluginCfgDefn.TracerSampler
extends Enum<OpenTelemetryPluginCfgDefn.TracerSampler>
Defines the set of permissible values for the "tracer-sampler" property.
The strategy used by the span exporter to sample spans. The sampling strategy is evaluated each time a span is started.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSamples no span at all.Samples all the spans.Follows the sampling decisions of the parent span.Follows the sampling decisions of the parent span.Follows the sampling decisions of the parent span.Samples a ratio of spans. -
Method Summary
-
Enum Constant Details
-
ALWAYS_OFF
Samples no span at all. -
ALWAYS_ON
Samples all the spans. -
PARENTBASED_ALWAYS_OFF
Follows the sampling decisions of the parent span. If there is no parent span, the span is never sampled. -
PARENTBASED_ALWAYS_ON
Follows the sampling decisions of the parent span. If there is no parent span, the span is always sampled. -
PARENTBASED_TRACEIDRATIO
Follows the sampling decisions of the parent span. If there is no parent span, fallback to using the "traceidratio" sampler. -
TRACEIDRATIO
Samples a ratio of spans. Prefer to use the "parentbased-traceidratio" sampler instead.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
- Overrides:
toString
in classEnum<OpenTelemetryPluginCfgDefn.TracerSampler>
-