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

Version Path
newrelic_rpm-9.16.0 lib/new_relic/agent/instrumentation/grpc_server.rb
newrelic_rpm-9.15.0 lib/new_relic/agent/instrumentation/grpc_server.rb
newrelic_rpm-9.14.0 lib/new_relic/agent/instrumentation/grpc_server.rb
newrelic_rpm-9.13.0 lib/new_relic/agent/instrumentation/grpc_server.rb
newrelic_rpm-9.12.0 lib/new_relic/agent/instrumentation/grpc_server.rb
newrelic_rpm-9.11.0 lib/new_relic/agent/instrumentation/grpc_server.rb
newrelic_rpm-9.10.2 lib/new_relic/agent/instrumentation/grpc_server.rb
newrelic_rpm-9.10.1 lib/new_relic/agent/instrumentation/grpc_server.rb
newrelic_rpm-9.10.0 lib/new_relic/agent/instrumentation/grpc_server.rb
newrelic_rpm-9.9.0 lib/new_relic/agent/instrumentation/grpc_server.rb
newrelic_rpm-9.8.0 lib/new_relic/agent/instrumentation/grpc_server.rb
newrelic_rpm-9.7.1 lib/new_relic/agent/instrumentation/grpc_server.rb