public class TraceScope extends Object implements Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
addKVAnnotation(String key,
String value) |
void |
addTimelineAnnotation(String msg) |
void |
close()
Close this TraceScope, ending the trace span it is managing.
|
void |
detach()
Detach this TraceScope from the current thread.
|
Span |
getSpan()
Returns the span which this scope is managing.
|
SpanId |
getSpanId()
Returns the span ID which this scope is managing.
|
void |
reattach()
Attach this TraceScope to the current thread.
|
String |
toString() |
public Span getSpan()
public SpanId getSpanId()
public void detach()
public void reattach()
public void close()
close in interface Closeableclose in interface AutoCloseablepublic void addTimelineAnnotation(String msg)
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.