Class GrpcLifecycleObserverServiceFilter

java.lang.Object
io.servicetalk.http.netty.HttpLifecycleObserverServiceFilter
io.servicetalk.grpc.netty.GrpcLifecycleObserverServiceFilter
All Implemented Interfaces:
HttpExecutionStrategyInfluencer, StreamingHttpServiceFilterFactory, ExecutionStrategyInfluencer<HttpExecutionStrategy>

public final class GrpcLifecycleObserverServiceFilter extends HttpLifecycleObserverServiceFilter
An HTTP service filter that tracks events during gRPC request/response lifecycle.

The result of the observed behavior will depend on the position of this filter in the execution chain. This filter is recommended to be appended as one of the first filters using HttpServerBuilder.appendNonOffloadingServiceFilter(StreamingHttpServiceFilterFactory) method via GrpcServerBuilder.initializeHttp(GrpcServerBuilder.HttpInitializer) to account for all work done by other filters and offloading of the requests processing. It can be appended at another position, considering the following:

An alternative way to install an GrpcLifecycleObserver is to use GrpcServerBuilder.lifecycleObserver(GrpcLifecycleObserver).
See Also: