public interface TraceScope extends Closeable
Modifier and Type | Interface and Description |
---|---|
static interface |
TraceScope.Continuation
Used to pass async context between workers.
|
Modifier and Type | Method and Description |
---|---|
TraceScope.Continuation |
capture()
Prevent the trace attached to this TraceScope from reporting until the returned Continuation is
either activated (and the returned scope is closed), or canceled.
|
void |
close()
Close the activated context and allow any underlying spans to finish.
|
boolean |
isAsyncPropagating()
If true, this context will propagate across async boundaries.
|
void |
setAsyncPropagation(boolean value)
Enable or disable async propagation.
|
TraceScope.Continuation capture()
Should be called on the parent thread.
void close()
close
in interface AutoCloseable
close
in interface Closeable
boolean isAsyncPropagating()
void setAsyncPropagation(boolean value)
value
- The new propagation value. True == propagate. False == don't propagate.