Class: Grpcx::Server::Interceptors::Instrumentation

Inherits:
GRPC::ServerInterceptor
  • Object
show all
Defined in:
lib/grpcx/server/interceptors/instrumentation.rb

Constant Summary collapse

METRIC_NAME =
'process_action.grpc'.freeze

Instance Method Summary collapse

Instance Method Details

#bidi_streamer(opts = {}, &block) ⇒ Object



21
22
23
# File 'lib/grpcx/server/interceptors/instrumentation.rb', line 21

def bidi_streamer(opts = {}, &block)
  instrument(opts[:method], &block)
end

#client_streamer(opts = {}, &block) ⇒ Object



13
14
15
# File 'lib/grpcx/server/interceptors/instrumentation.rb', line 13

def client_streamer(opts = {}, &block)
  instrument(opts[:method], &block)
end

#request_response(opts = {}, &block) ⇒ Object



9
10
11
# File 'lib/grpcx/server/interceptors/instrumentation.rb', line 9

def request_response(opts = {}, &block)
  instrument(opts[:method], &block)
end

#server_streamer(opts = {}, &block) ⇒ Object



17
18
19
# File 'lib/grpcx/server/interceptors/instrumentation.rb', line 17

def server_streamer(opts = {}, &block)
  instrument(opts[:method], &block)
end