Sha256: 77b8e107ad58e3f9244b792a6cdcff2027b9a36c0a53b7b94f803d8999036c9b
Contents?: true
Size: 976 Bytes
Versions: 12
Compression:
Stored size: 976 Bytes
Contents
# This file is distributed under New Relic's license terms. # See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details. # frozen_string_literal: true require_relative 'grpc/server/chain' require_relative 'grpc/server/rpc_server_prepend' require_relative 'grpc/server/rpc_desc_prepend' DependencyDetection.defer do named :grpc_server depends_on do defined?(GRPC) && defined?(GRPC::RpcServer) && defined?(GRPC::RpcDesc) end executes do supportability_name = NewRelic::Agent::Instrumentation::GRPC::Server::INSTRUMENTATION_NAME if use_prepend? prepend_instrument GRPC::RpcServer, NewRelic::Agent::Instrumentation::GRPC::Server::RpcServerPrepend, supportability_name prepend_instrument GRPC::RpcDesc, NewRelic::Agent::Instrumentation::GRPC::Server::RpcDescPrepend, supportability_name else chain_instrument NewRelic::Agent::Instrumentation::GRPC::Server::Chain, supportability_name end end end
Version data entries
12 entries across 12 versions & 1 rubygems