Interface SpanScope

All Superinterfaces:
AutoCloseable
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface SpanScope extends AutoCloseable
Represents the scope of a Span. This is attached to the thread, and should be closed on the same thread as it was created before the span is ended.
Since:
4.6.5
Author:
Mitchell Herrijgers
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Closes the scope of the Span on which it was opened.
  • Method Details

    • close

      void close()
      Closes the scope of the Span on which it was opened.

      Specified by:
      close in interface AutoCloseable