/** * Continue a trace by starting a new span with a given parent and description. */ public static Span trace(TInfo info, String description) { if (info.traceId == 0) { return Span.NULL_SPAN; } TraceInfo ti = new TraceInfo(info.traceId, info.parentId); return new Span(org.apache.htrace.Trace.startSpan(description, ti)); }
/** * Continue a trace by starting a new span with a given parent and description. */ public static Span trace(TInfo info, String description) { if (info.traceId == 0) { return Span.NULL_SPAN; } TraceInfo ti = new TraceInfo(info.traceId, info.parentId); return new Span(org.apache.htrace.Trace.startSpan(description, ti)); }
public static TraceInfo fromSpan(Span s) { if (s == null) return null; return new TraceInfo(s.getTraceId(), s.getSpanId()); } }
public static TraceInfo fromProto(DataTransferTraceInfoProto proto) { if (proto == null) return null; if (!proto.hasTraceId()) return null; return new TraceInfo(proto.getTraceId(), proto.getParentId()); }
public static TraceInfo fromProto(DataTransferTraceInfoProto proto) { if (proto == null) return null; if (!proto.hasTraceId()) return null; return new TraceInfo(proto.getTraceId(), proto.getParentId()); }
scope = Trace.startSpan("dataStreamer", new TraceInfo(0, parents[0]));
if (header.hasTraceInfo()) { TraceInfo parentSpan = new TraceInfo(header.getTraceInfo().getTraceId(), header.getTraceInfo().getParentId()); traceSpan = Trace.startSpan(rpcRequest.toString(), parentSpan).detach();
scope = Trace.startSpan("dataStreamer", new TraceInfo(0, parents[0]));
if (header.hasTraceInfo()) { TraceInfo parentSpan = new TraceInfo(header.getTraceInfo().getTraceId(), header.getTraceInfo().getParentId()); traceSpan = Trace.startSpan(rpcRequest.toString(), parentSpan).detach();
if (header.hasTraceInfo()) { TraceInfo parentSpan = new TraceInfo(header.getTraceInfo().getTraceId(), header.getTraceInfo().getParentId()); traceSpan = Trace.startSpan(rpcRequest.toString(), parentSpan).detach();
? new TraceInfo(header.getTraceInfo().getTraceId(), header.getTraceInfo().getParentId()) : null; Call call = new Call(id, this.service, md, header, param, cellScanner, this, responder,