Class: Grpcx::Server::Interceptors::Instrumentation
- Inherits:
-
GRPC::ServerInterceptor
- Object
- GRPC::ServerInterceptor
- Grpcx::Server::Interceptors::Instrumentation
- Defined in:
- lib/grpcx/server/interceptors/instrumentation.rb
Constant Summary collapse
- METRIC_NAME =
'process_action.grpc'.freeze
Instance Method Summary collapse
- #bidi_streamer(opts = {}, &block) ⇒ Object
- #client_streamer(opts = {}, &block) ⇒ Object
- #request_response(opts = {}, &block) ⇒ Object
- #server_streamer(opts = {}, &block) ⇒ Object
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 |