Class ScopedThreadSuppression
java.lang.Object
io.opentelemetry.instrumentation.api.internal.ScopedThreadSuppression
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
ScopedThreadSuppression
public ScopedThreadSuppression()
-
-
Method Details
-
tryAcquire
public boolean tryAcquire() -
isActive
public boolean isActive() -
release
public void release()
-