Package io.helidon.telemetry.otelconfig
Enum Class SamplerType
- All Implemented Interfaces:
Serializable,Comparable<SamplerType>,Constable
Sampler types valid for OpenTelemetry tracing.
This enum intentionally omits jaeger-remote as that requires an additional library.
Users who want to use that sampler can add the dependency themselves and prepare the OpenTelemetry
objects explicitly rather than using this builder.
Helidon recognizes the string values as documented in the OpenTelemetry documentation Properties: traces; Properties for sampler.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAlways off sampler.Always on sampler.Parent-based always-off sampler.Parent-based always-on sampler.Parent-based trace ID ration-based sampler.Trace ID ratio-based sampler. -
Method Summary
Modifier and TypeMethodDescriptionstatic SamplerTypeReturns the enum constant of this class with the specified name.static SamplerType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALWAYS_ON
Always on sampler. -
ALWAYS_OFF
Always off sampler. -
TRACEIDRATIO
Trace ID ratio-based sampler. -
PARENTBASED_ALWAYS_ON
Parent-based always-on sampler. -
PARENTBASED_ALWAYS_OFF
Parent-based always-off sampler. -
PARENTBASED_TRACEIDRATIO
Parent-based trace ID ration-based sampler.
-
-
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
-