class Instana::Activators::GrpcServer

Public Instance Methods

can_instrument?() click to toggle source
# File lib/instana/activators/grpc_server.rb, line 7
def can_instrument?
  defined?(::GRPC::RpcDesc) && ::Instana.config[:grpc][:enabled]
end
instrument() click to toggle source
# File lib/instana/activators/grpc_server.rb, line 11
def instrument
  require 'instana/instrumentation/grpc'

  ::GRPC::RpcDesc.prepend(::Instana::Instrumentation::GRPCServerInstrumentation)

  true
end