Class WeakRefAsyncOperationEndStrategies
- java.lang.Object
-
- io.opentelemetry.instrumentation.api.annotation.support.async.AsyncOperationEndStrategies
-
- io.opentelemetry.javaagent.tooling.asyncannotationsupport.WeakRefAsyncOperationEndStrategies
-
public final class WeakRefAsyncOperationEndStrategies extends io.opentelemetry.instrumentation.api.annotation.support.async.AsyncOperationEndStrategies
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidinitialize()Use the weak reference strategy in the agent.voidregisterStrategy(io.opentelemetry.instrumentation.api.annotation.support.async.AsyncOperationEndStrategy strategy)@Nullable io.opentelemetry.instrumentation.api.annotation.support.async.AsyncOperationEndStrategyresolveStrategy(Class<?> returnType)voidunregisterStrategy(io.opentelemetry.instrumentation.api.annotation.support.async.AsyncOperationEndStrategy strategy)
-
-
-
Method Detail
-
initialize
public static void initialize()
Use the weak reference strategy in the agent. This will prevent leaking reference to strategies' classloaders, in case applications get undeployed (and all their classes unloaded).
-
registerStrategy
public void registerStrategy(io.opentelemetry.instrumentation.api.annotation.support.async.AsyncOperationEndStrategy strategy)
- Specified by:
registerStrategyin classio.opentelemetry.instrumentation.api.annotation.support.async.AsyncOperationEndStrategies
-
unregisterStrategy
public void unregisterStrategy(io.opentelemetry.instrumentation.api.annotation.support.async.AsyncOperationEndStrategy strategy)
- Specified by:
unregisterStrategyin classio.opentelemetry.instrumentation.api.annotation.support.async.AsyncOperationEndStrategies
-
resolveStrategy
public @Nullable io.opentelemetry.instrumentation.api.annotation.support.async.AsyncOperationEndStrategy resolveStrategy(Class<?> returnType)
- Specified by:
resolveStrategyin classio.opentelemetry.instrumentation.api.annotation.support.async.AsyncOperationEndStrategies
-
-