Module: NewRelic::Security::Instrumentation::GRPC::ClientStub::Prepend

Includes:
NewRelic::Security::Instrumentation::GRPC::ClientStub
Defined in:
lib/newrelic_security/instrumentation-security/grpc/client/prepend.rb

Instance Method Summary collapse

Methods included from NewRelic::Security::Instrumentation::GRPC::ClientStub

#grpc_client_on_enter, #grpc_client_on_exit

Instance Method Details

#bidi_streamer(method, requests, marshal, unmarshal, deadline: nil, return_op: false, parent: nil, credentials: nil, metadata: {}, &blk) ⇒ Object

rubocop:disable Metrics/ParameterLists



26
27
28
29
30
# File 'lib/newrelic_security/instrumentation-security/grpc/client/prepend.rb', line 26

def bidi_streamer(method, requests, marshal, unmarshal, deadline: nil, return_op: false, parent: nil, credentials: nil, metadata: {}, &blk) # rubocop:disable Metrics/ParameterLists
  retval = nil
  event = grpc_client_on_enter(method, ) { retval = super }
  grpc_client_on_exit(event) { return retval }
end

#client_streamer(method, requests, marshal, unmarshal, deadline: nil, return_op: false, parent: nil, credentials: nil, metadata: {}) ⇒ Object

rubocop:disable Metrics/ParameterLists



20
21
22
23
24
# File 'lib/newrelic_security/instrumentation-security/grpc/client/prepend.rb', line 20

def client_streamer(method, requests, marshal, unmarshal, deadline: nil, return_op: false, parent: nil, credentials: nil, metadata: {}) # rubocop:disable Metrics/ParameterLists
  retval = nil
  event = grpc_client_on_enter(method, ) { retval = super }
  grpc_client_on_exit(event) { return retval }
end

#request_response(method, req, marshal, unmarshal, deadline: nil, return_op: false, parent: nil, credentials: nil, metadata: {}) ⇒ Object

rubocop:disable Metrics/ParameterLists



8
9
10
11
12
# File 'lib/newrelic_security/instrumentation-security/grpc/client/prepend.rb', line 8

def request_response(method, req, marshal, unmarshal, deadline: nil, return_op: false, parent: nil, credentials: nil, metadata: {}) # rubocop:disable Metrics/ParameterLists
  retval = nil
  event = grpc_client_on_enter(method, ) { retval = super }
  grpc_client_on_exit(event) { return retval }
end

#server_streamer(method, req, marshal, unmarshal, deadline: nil, return_op: false, parent: nil, credentials: nil, metadata: {}, &blk) ⇒ Object

rubocop:disable Metrics/ParameterLists



14
15
16
17
18
# File 'lib/newrelic_security/instrumentation-security/grpc/client/prepend.rb', line 14

def server_streamer(method, req, marshal, unmarshal, deadline: nil, return_op: false, parent: nil, credentials: nil, metadata: {}, &blk) # rubocop:disable Metrics/ParameterLists
  retval = nil
  event = grpc_client_on_enter(method, ) { retval = super }
  grpc_client_on_exit(event) { return retval }
end