Package io.opentelemetry.context
Interface Scope
- All Superinterfaces:
AutoCloseable
An
AutoCloseable that represents a mounted context for a block of code. A failure to call
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()) {
...
}
-
Method Summary
-
Method Details
-
noop
-
close
void close()- Specified by:
closein interfaceAutoCloseable
-