Sha256: c098b76826a412d12dbd366dd32c8527f85f57517134cd6bf00bcb4dc9fe0e2c
Contents?: true
Size: 841 Bytes
Versions: 22
Compression:
Stored size: 841 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 '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
22 entries across 22 versions & 1 rubygems