Class: Labkit::Tracing::GRPC::ServerInterceptor
- Inherits:
-
GRPC::ServerInterceptor
- Object
- GRPC::ServerInterceptor
- Labkit::Tracing::GRPC::ServerInterceptor
- Defined in:
- lib/labkit/tracing/grpc/server_interceptor.rb
Overview
GRPCServerInterceptor is a server-side GRPC interceptor for instrumenting GRPC calls with distributed tracing in a GRPC Ruby server
Instance Method Summary collapse
- #bidi_streamer(requests: nil, call: nil, method: nil) ⇒ Object
- #client_streamer(call: nil, method: nil) ⇒ Object
- #request_response(request: nil, call: nil, method: nil) ⇒ Object
- #server_streamer(request: nil, call: nil, method: nil) ⇒ Object
Instance Method Details
#bidi_streamer(requests: nil, call: nil, method: nil) ⇒ Object
35 36 37 38 39 |
# File 'lib/labkit/tracing/grpc/server_interceptor.rb', line 35 def bidi_streamer(requests: nil, call: nil, method: nil) wrap_with_tracing(call, method, "bidi_stream") do yield end end |
#client_streamer(call: nil, method: nil) ⇒ Object
23 24 25 26 27 |
# File 'lib/labkit/tracing/grpc/server_interceptor.rb', line 23 def client_streamer(call: nil, method: nil) wrap_with_tracing(call, method, "client_stream") do yield end end |
#request_response(request: nil, call: nil, method: nil) ⇒ Object
17 18 19 20 21 |
# File 'lib/labkit/tracing/grpc/server_interceptor.rb', line 17 def request_response(request: nil, call: nil, method: nil) wrap_with_tracing(call, method, "unary") do yield end end |
#server_streamer(request: nil, call: nil, method: nil) ⇒ Object
29 30 31 32 33 |
# File 'lib/labkit/tracing/grpc/server_interceptor.rb', line 29 def server_streamer(request: nil, call: nil, method: nil) wrap_with_tracing(call, method, "server_stream") do yield end end |