Interface Scope

All Superinterfaces:
AutoCloseable

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 Summary

    Modifier and Type
    Method
    Description
    void
    Closing a scope removes the corresponding Span from the current thread.
  • Method Details

    • close

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