Enum Class TraceBackend

java.lang.Object
java.lang.Enum<TraceBackend>
codes.grow.packages.skywalking.TraceBackend
All Implemented Interfaces:
Serializable, Comparable<TraceBackend>, Constable

public enum TraceBackend extends Enum<TraceBackend>
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>).

  • Enum Constant Details

    • AUTO

      public static final TraceBackend AUTO
      Hex ids via Zipkin first, then GraphQL; other ids via GraphQL; listings merge both stores.
    • ZIPKIN

      public static final TraceBackend ZIPKIN
      Only the Zipkin query API (spans exported over OTLP).
    • NATIVE

      public static final TraceBackend NATIVE
      Only native SkyWalking traces through GraphQL (agents, /v3/segments).
  • Method Details

    • values

      public static TraceBackend[] 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

      public static TraceBackend valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • wireValue

      public String wireValue()
      Wire value.
      Returns:
      auto, zipkin or native
    • parse

      public static TraceBackend parse(String text, String source)
      Parses a wire value (case-insensitive).
      Parameters:
      text - auto, zipkin or native
      source - variable or field name for the error message (never the value)
      Returns:
      the backend
      Throws:
      ConfigException - for any other value