Interface Scope

All Superinterfaces:
AutoCloseable, Closeable, NonThrowingCloseable
All Known Implementing Classes:
CurrentSpanUtils.ScopeInSpan, CurrentTagMapUtils.WithTagMap, NoopScope, NoopScope

public interface Scope extends NonThrowingCloseable
A Closeable that represents a change to the current context over a scope of code. close() cannot throw a checked exception.

Example of usage:

   try (Scope ctx = tryEnter()) {
     ...
   }
 
Since:
0.6
  • Method Summary

    Modifier and Type
    Method
    Description
    void