Sha256: 68036dc3ea6c96d5691d3b0a679cbf3a7b7f2fec18a103aef79d8f63f43a9eae
Contents?: true
Size: 704 Bytes
Versions: 5
Compression:
Stored size: 704 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/client/chain' require_relative 'grpc/client/prepend' DependencyDetection.defer do named :grpc_client depends_on do defined?(GRPC) && defined?(GRPC::ClientStub) end executes do supportability_name = 'gRPC_Client' if use_prepend? prepend_instrument GRPC::ClientStub, NewRelic::Agent::Instrumentation::GRPC::Client::Prepend, supportability_name else chain_instrument NewRelic::Agent::Instrumentation::GRPC::Client::Chain, supportability_name end end end
Version data entries
5 entries across 5 versions & 1 rubygems