Sha256: e433cd65e03d66d3851f3c003e0143c7aba868171046c00edafd2296492f84e0
Contents?: true
Size: 834 Bytes
Versions: 13
Compression:
Stored size: 834 Bytes
Contents
# encoding: utf-8 # 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 'httprb/instrumentation' require_relative 'httprb/chain' require_relative 'httprb/prepend' DependencyDetection.defer do named :httprb depends_on do defined?(HTTP) && defined?(HTTP::Client) end executes do ::NewRelic::Agent.logger.info "Installing http.rb Wrappers" require 'new_relic/agent/distributed_tracing/cross_app_tracing' require 'new_relic/agent/http_clients/http_rb_wrappers' end executes do if use_prepend? prepend_instrument HTTP::Client, ::NewRelic::Agent::Instrumentation::HTTPrb::Prepend else chain_instrument ::NewRelic::Agent::Instrumentation::HTTPrb::Chain end end end
Version data entries
13 entries across 13 versions & 1 rubygems