Class ComposableInterceptor<T>
java.lang.Object
io.opentelemetry.contrib.interceptor.common.ComposableInterceptor<T>
- All Implemented Interfaces:
Interceptor<T>
Allows to run an item through a list of interceptors in the order they were added.
-
Constructor Details
-
ComposableInterceptor
public ComposableInterceptor()
-
-
Method Details
-
add
-
intercept
Description copied from interface:InterceptorIntercepts a signal.- Specified by:
interceptin interfaceInterceptor<T>- Parameters:
item- The signal object.- Returns:
- The received signal modified (or null for excluding this signal from getting exported). If there's no operation needed to be done for a specific signal, it should be returned as is.
-