org.htrace
Class TraceScope

java.lang.Object
  extended by org.htrace.TraceScope
All Implemented Interfaces:
Closeable

public class TraceScope
extends Object
implements Closeable


Method Summary
 void close()
           
 Span detach()
          Remove this span as the current thread, but don't stop it yet or send it for collection.
 Span getSpan()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSpan

public Span getSpan()

detach

public Span detach()
Remove this span as the current thread, but don't stop it yet or send it for collection. This is useful if the span object is then passed to another thread for use with Trace.continueTrace().

Returns:
the same Span object

close

public void close()
Specified by:
close in interface Closeable


Copyright © 2014. All Rights Reserved.