AutoCloseable that represents a mounted context for a block of code. A failure to call
Scope#close() will generally break tracing or cause memory leaks. It is recommended that
you use this class with a try-with-resources block:
try (Scope ignored = span.makeCurrent()) {
...
}
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Redeclares java. Closes this resource, relinquishing any underlying resources. |
| public static Scope |
| close | back to summary |
|---|---|
| public void close() Redeclares java. Doc from java. Closes this resource, relinquishing any underlying resources.
This method is invoked automatically on objects managed by the
| |
| noop | back to summary |
|---|---|
| public static Scope noop() Returns a | |