@Override public TraceContext newTraceContext(int flags, long traceIdHigh, long traceId, long localRootId, long parentId, long spanId, List<Object> extra) { return new TraceContext(flags, traceIdHigh, traceId, localRootId, parentId, spanId, extra); }
TraceContext withFlags(int flags) { return new TraceContext(flags, traceIdHigh, traceId, localRootId, parentId, spanId, extra); }
TraceContext withExtra(List<Object> extra) { return new TraceContext(flags, traceIdHigh, traceId, localRootId, parentId, spanId, extra); }
public final TraceContext build() { String missing = ""; if (traceId == 0L) missing += " traceId"; if (spanId == 0L) missing += " spanId"; if (!"".equals(missing)) throw new IllegalStateException("Missing: " + missing); return new TraceContext( flags, traceIdHigh, traceId, localRootId, parentId, spanId, ensureImmutable(extra) ); }
return TraceContextOrSamplingFlags.create(new TraceContext( flags, traceIdHigh,
@Override public TraceContext newTraceContext(int flags, long traceIdHigh, long traceId, long localRootId, long parentId, long spanId, List<Object> extra) { return new TraceContext(flags, traceIdHigh, traceId, localRootId, parentId, spanId, extra); }
TraceContext withExtra(List<Object> extra) { return new TraceContext(flags, traceIdHigh, traceId, localRootId, parentId, spanId, extra); }
TraceContext withFlags(int flags) { return new TraceContext(flags, traceIdHigh, traceId, localRootId, parentId, spanId, extra); }
public final TraceContext build() { String missing = ""; if (traceId == 0L) missing += " traceId"; if (spanId == 0L) missing += " spanId"; if (!"".equals(missing)) throw new IllegalStateException("Missing: " + missing); return new TraceContext( flags, traceIdHigh, traceId, localRootId, parentId, spanId, ensureImmutable(extra) ); }
return TraceContextOrSamplingFlags.create(new TraceContext( flags, traceIdHigh,