Interface Scope

  • All Superinterfaces:
    AutoCloseable
    All Known Implementing Classes:
    NoopScope, ScopeImpl

    public interface Scope
    extends AutoCloseable
    Scopes are designed to be used in combination with try-with-resource statements to remove activated spans from the current thread.
    • Method Detail

      • close

        void close()
        Closing a scope removes the corresponding Span from the current thread.
        Specified by:
        close in interface AutoCloseable