Class: GRPC::OpenTracing::RequestReplySpanDecorator
- Inherits:
-
Object
- Object
- GRPC::OpenTracing::RequestReplySpanDecorator
- Defined in:
- lib/grpc/opentracing/request_reply_span_decorator.rb
Class Method Summary collapse
Class Method Details
.call(span, method, request, response, error) ⇒ Object
5 6 7 8 |
# File 'lib/grpc/opentracing/request_reply_span_decorator.rb', line 5 def call(span, method, request, response, error) span.set_tag('grpc.request', request.to_json) if request span.set_tag('grpc.reply', response.to_json) if response end |