Class GetTraceOptions

java.lang.Object
codes.grow.packages.tempo.GetTraceOptions

public final class GetTraceOptions extends Object
Options of TempoQueryClient.getTrace(String, GetTraceOptions): a time window that narrows the backend blocks Tempo searches (sent as epoch seconds). Recent data is returned even outside the window.
  • Method Details

    • none

      public static GetTraceOptions none()
      No window.
      Returns:
      options without start and end
    • between

      public static GetTraceOptions between(Instant start, Instant end)
      A window.
      Parameters:
      start - window start or null
      end - window end or null
      Returns:
      options
    • start

      public Optional<Instant> start()
      Window start.
      Returns:
      start, if set
    • end

      public Optional<Instant> end()
      Window end.
      Returns:
      end, if set