Trace.continueSpan(savedSpan);
public static TraceScope startSpan(String description, TraceInfo tinfo) { if (tinfo == null) return continueSpan(null); Span newSpan = new MilliSpan(description, tinfo.traceId, tinfo.spanId, random.nextLong(), Tracer.getProcessId()); return continueSpan(newSpan); }
protected void tracedWriteRequest(Call call, int priority, Span span) throws IOException { TraceScope ts = Trace.continueSpan(span); try { writeRequest(call, priority, span); } finally { ts.close(); } }
/** * Starts and returns a new span as the child of the parameter 'parent'. This * will always return a new span, even if tracing wasn't previously enabled for * this thread. * * @param description Description of the span to be created. * @param parent The parent that should be used to create the child span that is to * be returned. * @return */ public static TraceScope startSpan(String description, Span parent) { if (parent == null) return startSpan(description); return continueSpan(parent.child(description)); }
public static TraceScope startSpan(String description, Sampler<TraceInfo> s, TraceInfo tinfo) { Span span = null; if (isTracing() || s.next(tinfo)) { span = new MilliSpan(description, tinfo.traceId, tinfo.spanId, random.nextLong(), Tracer.getProcessId()); } return continueSpan(span); }
public static <T> TraceScope startSpan(String description, Sampler<T> s, T info) { Span span = null; if (isTracing() || s.next(info)) { span = Tracer.getInstance().createNew(description); } return continueSpan(span); }
@Override public void sync(long txid) throws IOException { if (this.highestSyncedSequence.get() >= txid){ // Already sync'd. return; } TraceScope scope = Trace.startSpan("FSHLog.sync"); try { scope = Trace.continueSpan(publishSyncThenBlockOnCompletion(scope.detach())); } finally { assert scope == NullScope.INSTANCE || !scope.isDetached(); scope.close(); } }
traceScope = Trace.continueSpan(call.traceSpan);
@Override public void sync() throws IOException { TraceScope scope = Trace.startSpan("FSHLog.sync"); try { scope = Trace.continueSpan(publishSyncThenBlockOnCompletion(scope.detach())); } finally { assert scope == NullScope.INSTANCE || !scope.isDetached(); scope.close(); } }
traceScope = Trace.continueSpan(call.traceSpan);
if (span != null) { TraceScope scope = Trace.continueSpan(span); scope.close();
if (span != null) { TraceScope scope = Trace.continueSpan(span); scope.close();
traceScope = Trace.continueSpan(call.traceSpan);
TraceScope scope = Trace.continueSpan(takeSyncFuture.getSpan()); long start = System.nanoTime(); Throwable lastException = null;
scope = Trace.continueSpan(one.getTraceSpan()); one.setTraceSpan(null); lastAckedSeqno = seqno;
scope = Trace.continueSpan(one.getTraceSpan()); one.setTraceSpan(null); lastAckedSeqno = seqno;
Trace.continueSpan(savedSpan);
Trace.continueSpan(savedSpan);
TraceScope scope = Trace.continueSpan(truck.unloadSpanPayload()); try { FSWALEntry entry = truck.unloadFSWALEntryPayload();