Sha256: f6c02314144e187baf972e3329fa75fc5dd72647cb89c807c14ea0625b1ff0ff
Contents?: true
Size: 937 Bytes
Versions: 4
Compression:
Stored size: 937 Bytes
Contents
# frozen_string_literal: true # This file is distributed under New Relic's license terms. # See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details. 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 = 'gRPC_Server' 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
4 entries across 4 versions & 1 rubygems