Package co.elastic.apm.api
Interface Scope
-
- All Superinterfaces:
java.lang.AutoCloseable
public interface Scope extends java.lang.AutoCloseableScopes 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 interfacejava.lang.AutoCloseable
-
-