Package zipkin2

Class TestObjects


  • public final class TestObjects
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static zipkin2.Endpoint BACKEND  
      static zipkin2.Span CLIENT_SPAN  
      static long DAY
      Notably, the cassandra implementation has day granularity
      static zipkin2.Endpoint DB  
      static zipkin2.Endpoint FRONTEND  
      static zipkin2.Span[] LOTS_OF_SPANS
      Zipkin trace ids are random 64bit numbers.
      static long TODAY  
      static java.util.List<zipkin2.Span> TRACE  
      static long TRACE_DURATION  
      static long TRACE_ENDTS  
      static long TRACE_STARTTS  
      static java.nio.charset.Charset UTF_8  
    • Constructor Summary

      Constructors 
      Constructor Description
      TestObjects()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static long midnightUTC​(long epochMillis)
      For bucketed data floored to the day.
      static zipkin2.Span span​(long traceId)  
      • Methods inherited from class java.lang.Object

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

      • UTF_8

        public static final java.nio.charset.Charset UTF_8
      • DAY

        public static final long DAY
        Notably, the cassandra implementation has day granularity
      • TODAY

        public static final long TODAY
      • FRONTEND

        public static final zipkin2.Endpoint FRONTEND
      • BACKEND

        public static final zipkin2.Endpoint BACKEND
      • DB

        public static final zipkin2.Endpoint DB
      • CLIENT_SPAN

        public static final zipkin2.Span CLIENT_SPAN
      • TRACE

        public static final java.util.List<zipkin2.Span> TRACE
      • TRACE_DURATION

        public static final long TRACE_DURATION
      • TRACE_STARTTS

        public static final long TRACE_STARTTS
      • TRACE_ENDTS

        public static final long TRACE_ENDTS
      • LOTS_OF_SPANS

        public static final zipkin2.Span[] LOTS_OF_SPANS
        Zipkin trace ids are random 64bit numbers. This creates a relatively large input to avoid flaking out due to PRNG nuance.
    • Constructor Detail

      • TestObjects

        public TestObjects()
    • Method Detail

      • midnightUTC

        public static long midnightUTC​(long epochMillis)
        For bucketed data floored to the day. For example, dependency links.
      • span

        public static zipkin2.Span span​(long traceId)