TraceContext extends SamplingFlags { TraceContext withExtra(List<Object> extra) { return new TraceContext(flags, traceIdHigh, traceId, localRootId, parentId, spanId, extra); } TraceContext(
    int flags,
    long traceIdHigh,
    long traceId,
    long localRootId,
    long parentId,
    long spanId,
    List<Object> extraList
  ); static Builder newBuilder(); long traceIdHigh(); long traceId(); long localRootId(); boolean isLocalRoot(); @Nullable final Long parentId(); long parentIdAsLong(); long spanId(); boolean shared(); List<Object> extra(); @Nullable T findExtra(Class<T> type); Builder toBuilder(); String traceIdString(); @Nullable String parentIdString(); @Nullable String localRootIdString(); String spanIdString(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void withExtra_notEmpty() { assertThat(context.withExtra(Arrays.asList(1L))) .extracting("extra") .isEqualTo(Arrays.asList(1L)); }