Class ScopedThreadSuppression

java.lang.Object
io.opentelemetry.instrumentation.api.internal.ScopedThreadSuppression

public final class ScopedThreadSuppression extends Object
Thread-local suppression with acquisition ownership.

A caller that successfully acquires suppression must release it. A caller whose acquisition fails does not own the suppression and must not release it.

This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.

  • Constructor Details

    • ScopedThreadSuppression

      public ScopedThreadSuppression()
  • Method Details

    • tryAcquire

      public boolean tryAcquire()
    • isActive

      public boolean isActive()
    • release

      public void release()