@Override public void close() throws IOException { try { delegate.close(); } finally { if (child != null) { child.stop(); } } } };
public void stop() { if (scope == null) { if (span != null) { span.stop(); } } else { scope.close(); } } }
/** * Finish the current trace. */ public static void off() { org.apache.htrace.Span span = org.apache.htrace.Trace.currentSpan(); if (span != null) { span.stop(); // close() will no-op, but ensure safety if the implementation changes org.apache.htrace.Tracer.getInstance().continueSpan(null).close(); } }
try { if (!success && child != null) { child.stop();
@Override public void close() throws IOException { try { delegate.close(); } finally { if (child != null) { child.stop(); } } } };
@Override public void close() throws IOException { try { delegate.close(); } finally { if (child != null) { child.stop(); } } } };
child.addTimelineAnnotation("timeline annotation"); TracingUtils.addAnnotation(child, "test annotation", 10); child.stop();
public void stop() { if (scope == null) { if (span != null) { span.stop(); } } else { scope.close(); } } }
@Override public void close() { if (span == null) return; if (!detached) { // The span is done span.stop(); detach(); } } }
/** * Finish the current trace. */ public static void off() { org.apache.htrace.Span span = org.apache.htrace.Trace.currentSpan(); if (span != null) { span.stop(); // close() will no-op, but ensure safety if the implementation changes org.apache.htrace.Tracer.getInstance().continueSpan(null).close(); } }
try { if (!success && child != null) { child.stop();
try { if (!success && child != null) { child.stop();