lib/instana/instrumentation/grpc.rb in instana-1.7.6 vs lib/instana/instrumentation/grpc.rb in instana-1.7.7
- old
+ new
@@ -43,11 +43,11 @@
end
if defined?(GRPC::RpcDesc) && ::Instana.config[:grpc][:enabled]
call_types.each do |call_type|
GRPC::RpcDesc.class_eval <<-RUBY, __FILE__, __LINE__ + 1
- def handle_#{call_type}_with_instana(active_call, mth)
+ def handle_#{call_type}_with_instana(active_call, mth, *others)
kvs = { rpc: {} }
metadata = active_call.metadata
incoming_context = {}
if metadata.key?('x-instana-t')
@@ -64,10 +64,10 @@
::Instana.tracer.log_start_or_continue(
:'rpc-server', kvs, incoming_context
)
- handle_#{call_type}_without_instana(active_call, mth)
+ handle_#{call_type}_without_instana(active_call, mth, *others)
rescue => e
kvs[:rpc][:error] = true
::Instana.tracer.log_info(kvs)
::Instana.tracer.log_error(e)
raise