Class QueryTracesOptions

java.lang.Object
codes.grow.packages.skywalking.QueryTracesOptions

public final class QueryTracesOptions extends Object
Filter of SkyWalkingQueryClient.queryTraces(codes.grow.packages.skywalking.QueryTracesOptions) (native traces). Services, instances and endpoints are given by name; the SDK derives the ids.
  • Method Details

    • builder

      public static QueryTracesOptions.Builder builder()
      Returns a builder.
      Returns:
      builder with every field unset
    • defaults

      public static QueryTracesOptions defaults()
      No filter: the last hour, first page.
      Returns:
      options
    • service

      public Optional<String> service()
      Service name.
      Returns:
      the service, or empty
    • instance

      public Optional<String> instance()
      Instance name (needs a service).
      Returns:
      the instance, or empty
    • endpoint

      public Optional<String> endpoint()
      Endpoint name (needs a service).
      Returns:
      the endpoint, or empty
    • traceId

      public Optional<String> traceId()
      Native trace id.
      Returns:
      the id, or empty
    • traceState

      public TraceState traceState()
      Trace state (default TraceState.ALL).
      Returns:
      the state
    • minDurationMs

      public OptionalLong minDurationMs()
      Minimum trace duration in ms.
      Returns:
      the duration, or empty
    • maxDurationMs

      public OptionalLong maxDurationMs()
      Maximum trace duration in ms.
      Returns:
      the duration, or empty
    • tags

      public Map<String,String> tags()
      Tag matches; only keys in the server's SW_SEARCHABLE_TAG_KEYS can match.
      Returns:
      immutable map
    • range

      public Optional<TimeRange> range()
      Window (default the last hour; not sent when only a trace id is given).
      Returns:
      the range, or empty
    • paging

      public Paging paging()
      Page selection (default Paging.DEFAULT).
      Returns:
      the paging
    • order

      public TraceOrder order()
      Result order (default TraceOrder.BY_START_TIME).
      Returns:
      the order