This makes a given span the current span by placing it in scope (usually but not always a thread local scope).
| Modifier and Type | Class and Description |
|---|---|
| public static interface | CurrentTraceContext.Scope
Scope of a span. |
| Modifier and Type | Field and Description |
|---|---|
| public static final CurrentTraceContext | NOOP
A noop implementation. |
| Modifier and Type | Method and Description |
|---|---|
| public TraceContext | |
| public CurrentTraceContext. | Returns: the scope with the span setspan to place into scope or context)null to clear the scopeLike |
| public CurrentTraceContext. | Returns: the scope with the span setspan to place into scope or context)null to clear the scopeSets the current span in scope until the returned object is closed. |
| public < task return type C> Callable | |
| public Runnable | |
| public Executor | |
| public ExecutorService | Returns: wrapped executor serviceexecutor service to wrap delegate)Wraps an executor service in a trace representation. |
| NOOP | back to summary |
|---|---|
| public static final CurrentTraceContext NOOP A noop implementation. | |
| context | back to summary |
|---|---|
public TraceContext context()
| |
| maybeScope | back to summary |
|---|---|
| public CurrentTraceContext. Like
| |
| newScope | back to summary |
|---|---|
| public CurrentTraceContext. Sets the current span in scope until the returned object is closed. It is a programming error to drop or never close the result. Using try-with-resources is preferred for this reason.
| |
| wrap | back to summary |
|---|---|
| public <C> Callable Wraps a task in a trace representation. | |
| wrap | back to summary |
|---|---|
| public Runnable wrap(Runnable task) Wraps a task in a trace representation. | |
| wrap | back to summary |
|---|---|
| public Executor wrap(Executor delegate) Wraps an executor in a trace representation. | |
| wrap | back to summary |
|---|---|
| public ExecutorService wrap(ExecutorService delegate) Wraps an executor service in a trace representation.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final CurrentTraceContext. | NOOP
A noop implementation. |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Redeclares java. |
| NOOP | back to summary |
|---|---|
| public static final CurrentTraceContext. A noop implementation. | |
| close | back to summary |
|---|---|
| public void close() Redeclares java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |