Module io.helidon.tracing.jaeger
Package io.helidon.tracing.jaeger
Enum Class JaegerTracerBuilder.SamplerType
java.lang.Object
java.lang.Enum<JaegerTracerBuilder.SamplerType>
io.helidon.tracing.jaeger.JaegerTracerBuilder.SamplerType
- All Implemented Interfaces:
Serializable,Comparable<JaegerTracerBuilder.SamplerType>,Constable
- Enclosing class:
- JaegerTracerBuilder
Sampler type definition.
Available options are "const", "probabilistic", "ratelimiting" and "remote".
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionConstant sampler always makes the same decision for all traces.Probabilistic sampler makes a random sampling decision with the probability of sampling equal to the value of the property.Rate Limiting sampler uses a leaky bucket rate limiter to ensure that traces are sampled with a certain constant rate.Remote sampler consults Jaeger agent for the appropriate sampling strategy to use in the current service. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static JaegerTracerBuilder.SamplerType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONSTANT
Constant sampler always makes the same decision for all traces. It either samples all traces1or none of them0. -
PROBABILISTIC
Probabilistic sampler makes a random sampling decision with the probability of sampling equal to the value of the property. -
RATE_LIMITING
Rate Limiting sampler uses a leaky bucket rate limiter to ensure that traces are sampled with a certain constant rate. -
REMOTE
Remote sampler consults Jaeger agent for the appropriate sampling strategy to use in the current service.
-
-
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
-