Class: OpenTelemetry::Instrumentation::Grpc::Interceptors::Client

Inherits:
GRPC::ClientInterceptor
  • Object
show all
Defined in:
lib/opentelemetry/instrumentation/grpc/interceptors/client.rb

Instance Method Summary collapse

Instance Method Details

#bidi_streamer(requests: nil, call: nil, method: nil, metadata: nil, &blk) ⇒ Object



20
21
22
# File 'lib/opentelemetry/instrumentation/grpc/interceptors/client.rb', line 20

def bidi_streamer(requests: nil, call: nil, method: nil, metadata: nil, &blk)
  call(type: "client_streamer", requests: requests, call: call, method: method, metadata: , &blk)
end

#client_streamer(requests: nil, call: nil, method: nil, metadata: nil, &blk) ⇒ Object



12
13
14
# File 'lib/opentelemetry/instrumentation/grpc/interceptors/client.rb', line 12

def client_streamer(requests: nil, call: nil, method: nil, metadata: nil, &blk)
  call(type: "client_streamer", requests: requests, call: call, method: method, metadata: , &blk)
end

#request_response(request: nil, call: nil, method: nil, metadata: nil, &blk) ⇒ Object



8
9
10
# File 'lib/opentelemetry/instrumentation/grpc/interceptors/client.rb', line 8

def request_response(request: nil, call: nil, method: nil, metadata: nil, &blk)
  call(type: "request_response", requests: [request], call: call, method: method, metadata: , &blk)
end

#server_streamer(request: nil, call: nil, method: nil, metadata: nil, &blk) ⇒ Object



16
17
18
# File 'lib/opentelemetry/instrumentation/grpc/interceptors/client.rb', line 16

def server_streamer(request: nil, call: nil, method: nil, metadata: nil, &blk)
  call(type: "server_streamer", requests: [request], call: call, method: method, metadata: , &blk)
end