Class RequestIdInterceptor
- java.lang.Object
-
- yandex.cloud.sdk.grpc.interceptors.RequestIdInterceptor
-
- All Implemented Interfaces:
io.grpc.ClientInterceptor
public class RequestIdInterceptor extends Object implements io.grpc.ClientInterceptor
An interceptor that adds required client headers:x-client-request-idandx-client-trace-id. Both values are random UUIDs.
-
-
Constructor Summary
Constructors Constructor Description RequestIdInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <ReqT,RespT>
io.grpc.ClientCall<ReqT,RespT>interceptCall(io.grpc.MethodDescriptor<ReqT,RespT> method, io.grpc.CallOptions callOptions, io.grpc.Channel next)
-