Package codes.grow.packages.skywalking
Enum Class TraceBackend
- All Implemented Interfaces:
Serializable,Comparable<TraceBackend>,Constable
Trace store read by
SkyWalkingTraceQueryClient (SkyWalkingConfig.traceBackend()).
OAP keeps OTLP spans in its Zipkin model (read through the Zipkin query API, 32-hex ids) and
SkyWalking agent segments in its native model (read through GraphQL, opaque ids such as
<hex>.<n>.<ms>).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic TraceBackendParses a wire value (case-insensitive).static TraceBackendReturns the enum constant of this class with the specified name.static TraceBackend[]values()Returns an array containing the constants of this enum class, in the order they are declared.Wire value.
-
Enum Constant Details
-
AUTO
Hex ids via Zipkin first, then GraphQL; other ids via GraphQL; listings merge both stores. -
ZIPKIN
Only the Zipkin query API (spans exported over OTLP). -
NATIVE
Only native SkyWalking traces through GraphQL (agents,/v3/segments).
-
-
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
-
wireValue
Wire value.- Returns:
auto,zipkinornative
-
parse
Parses a wire value (case-insensitive).- Parameters:
text-auto,zipkinornativesource- variable or field name for the error message (never the value)- Returns:
- the backend
- Throws:
ConfigException- for any other value
-