Package zipkin2
Class TestObjects
java.lang.Object
zipkin2.TestObjects
public final class TestObjects extends Object
-
Field Summary
Fields Modifier and Type Field Description static Endpoint
BACKEND
static Span
CLIENT_SPAN
static long
DAY
Notably, the cassandra implementation has day granularitystatic Endpoint
DB
static Endpoint
FRONTEND
static Span[]
LOTS_OF_SPANS
Zipkin trace ids are random 64bit numbers.static long
TODAY
static List<Span>
TRACE
static long
TRACE_DURATION
static long
TRACE_ENDTS
static long
TRACE_STARTTS
static Charset
UTF_8
-
Constructor Summary
Constructors Constructor Description TestObjects()
-
Method Summary
Modifier and Type Method Description static long
midnightUTC(long epochMillis)
For bucketed data floored to the day.static Span
span(long traceId)
-
Field Details
-
UTF_8
-
DAY
public static final long DAYNotably, the cassandra implementation has day granularity -
TODAY
public static final long TODAY -
FRONTEND
-
BACKEND
-
DB
-
CLIENT_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
Zipkin trace ids are random 64bit numbers. This creates a relatively large input to avoid flaking out due to PRNG nuance.
-
-
Constructor Details
-
TestObjects
public TestObjects()
-
-
Method Details
-
midnightUTC
public static long midnightUTC(long epochMillis)For bucketed data floored to the day. For example, dependency links. -
span
-