-
- All Superinterfaces:
AutoCloseable
public interface Scope extends AutoCloseable
Scopes are designed to be used in combination with try-with-resource statements to removeactivatedspans from the current thread.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Closing a scope removes the correspondingSpanfrom the current thread.
-
-
-
Method Detail
-
close
void close()
Closing a scope removes the correspondingSpanfrom the current thread.- Specified by:
closein interfaceAutoCloseable
-
-