TraceIdContext extends SamplingFlags { @Override public String toString() { boolean traceHi = traceIdHigh != 0; char[] result = new char[traceHi ? 32 : 16]; int pos = 0; if (traceHi) { writeHexLong(result, pos, traceIdHigh); pos += 16; } writeHexLong(result, pos, traceId); return new String(result); } TraceIdContext(int flags, long traceIdHigh, long traceId); static Builder newBuilder(); long traceIdHigh(); long traceId(); String traceIdString(); Builder toBuilder(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void testToString_lo() { assertThat(base.toString()) .isEqualTo("000000000000014d"); }
@Test public void testToString() { assertThat(base.toBuilder().traceIdHigh(222L).build().toString()) .isEqualTo("00000000000000de000000000000014d"); }