Reference documentation and code samples for the Cloud Spanner API class Google::Cloud::Spanner::RequestIdInterceptor.
RequestIdInterceptor is a GRPC interceptor class that captures all the rpc calls made by the GRPC layer inserting a new Header with a specific ID for debugging purposes.
Inherits
- GRPC::ClientInterceptor
Methods
#bidi_streamer
def bidi_streamer(method:, request:, call:, metadata:, &block) -> voidIntercepts a bidi_streamer rpc call
- method (String) — The RPC method name
- request (Google::Protobuf::MessageExts) — The request to be sent to the RPC call
- call (GRPC::ActiveCall::InterceptableView) — An interceptable view object for the call class
- metadata (Hash) — The metadata to be sent to the RPC call
- (void)
#client_streamer
def client_streamer(method:, request:, call:, metadata:, &block) -> voidIntercepts a client_streamer rpc call
- method (String) — The RPC method name
- request (Google::Protobuf::MessageExts) — The request to be sent to the RPC call
- call (GRPC::ActiveCall::InterceptableView) — An interceptable view object for the call class
- metadata (Hash) — All the metadata to be sent to the RPC call
- (void)
#initialize
def initialize(process_id: nil) -> Google::Cloud::Spanner::RequestIdInterceptorInitializes a request_id_interceptor instance.
- process_id (String, int) (defaults to: nil) — A 64 bit value in Hex or Integer format
#request_response
def request_response(method:, request:, call:, metadata:, &block) -> voidIntercepts a request_response rpc call
- method (String) — The RPC method name
- request (Google::Protobuf::MessageExts) — The request to be sent to the RPC call
- call (GRPC::ActiveCall::InterceptableView) — An interceptable view object for the call class
- metadata (Hash) — All the metadata to be sent to the RPC call
- (void)
#server_streamer
def server_streamer(method:, request:, call:, metadata:, &block) -> voidIntercepts a server_streamer rpc call
- method (String) — The RPC method name
- request (Google::Protobuf::MessageExts) — The request to be sent to the RPC call
- call (GRPC::ActiveCall::InterceptableView) — An interceptable view object for the call class
- metadata (Hash) — All the metadata to be sent to the RPC call
- (void)