Class StrictTraceId


  • public final class StrictTraceId
    extends java.lang.Object
    Storage implementation often need to re-check query results when strict trace ID is disabled.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Call.Mapper<java.util.List<Span>,​java.util.List<Span>> filterSpans​(java.lang.String traceId)  
      static Call.Mapper<java.util.List<java.util.List<Span>>,​java.util.List<java.util.List<Span>>> filterTraces​(java.lang.Iterable<java.lang.String> traceIds)
      Returns a function that filters its mutable input when it contains a trace not matching the specified trace IDs.
      static Call.Mapper<java.util.List<java.util.List<Span>>,​java.util.List<java.util.List<Span>>> filterTraces​(QueryRequest request)
      Filters the mutable input client-side when there's a clash on lower 64-bits of a trace ID.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • filterSpans

        public static Call.Mapper<java.util.List<Span>,​java.util.List<Span>> filterSpans​(java.lang.String traceId)
      • filterTraces

        public static Call.Mapper<java.util.List<java.util.List<Span>>,​java.util.List<java.util.List<Span>>> filterTraces​(QueryRequest request)
        Filters the mutable input client-side when there's a clash on lower 64-bits of a trace ID.
        See Also:
        FilterTraces
      • filterTraces

        public static Call.Mapper<java.util.List<java.util.List<Span>>,​java.util.List<java.util.List<Span>>> filterTraces​(java.lang.Iterable<java.lang.String> traceIds)
        Returns a function that filters its mutable input when it contains a trace not matching the specified trace IDs.

        Make sure the input IDs are unique and normalized.